Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
4d8ae71b
You need to sign in or sign up before continuing.
Unverified
Commit
4d8ae71b
authored
Dec 25, 2023
by
Muhammed Fatih BALIN
Committed by
GitHub
Dec 25, 2023
Browse files
[GraphBolt][CUDA] Macro for all types (#6824)
parent
26e740a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
graphbolt/src/cuda/common.h
graphbolt/src/cuda/common.h
+10
-0
No files found.
graphbolt/src/cuda/common.h
View file @
4d8ae71b
...
@@ -90,6 +90,16 @@ inline bool is_zero<dim3>(dim3 size) {
...
@@ -90,6 +90,16 @@ inline bool is_zero<dim3>(dim3 size) {
} \
} \
}
}
// This includes all integer, float and boolean types.
#define GRAPHBOLT_DISPATCH_CASE_ALL_TYPES(...) \
AT_DISPATCH_CASE_ALL_TYPES(__VA_ARGS__) \
AT_DISPATCH_CASE(at::ScalarType::Half, __VA_ARGS__) \
AT_DISPATCH_CASE(at::ScalarType::BFloat16, __VA_ARGS__) \
AT_DISPATCH_CASE(at::ScalarType::Bool, __VA_ARGS__)
#define GRAPHBOLT_DISPATCH_ALL_TYPES(TYPE, NAME, ...) \
AT_DISPATCH_SWITCH(TYPE, NAME, GRAPHBOLT_DISPATCH_CASE_ALL_TYPES(__VA_ARGS__))
#define GRAPHBOLT_DISPATCH_ELEMENT_SIZES(element_size, name, ...) \
#define GRAPHBOLT_DISPATCH_ELEMENT_SIZES(element_size, name, ...) \
[&] { \
[&] { \
switch (element_size) { \
switch (element_size) { \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment