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
torch-scatter
Commits
d1167d95
Commit
d1167d95
authored
Dec 22, 2017
by
rusty1s
Browse files
typo
parent
9f159a77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torch_scatter/kernel/common.cuh
torch_scatter/kernel/common.cuh
+2
-1
No files found.
torch_scatter/kernel/common.cuh
View file @
d1167d95
...
...
@@ -24,7 +24,6 @@ struct TensorInfo {
#define KERNEL_LOOP(I, N) \
for (int I = blockIdx.x * blockDim.x + threadIdx.x; I < N; i += blockDim.x * gridDim.x)
/* #define KERNEL_RUN(NAME, DIMS, N, PARAMS) \ */
#define KERNEL_RUN(NAME, DIMS, N, ...) { \
int grid = GET_BLOCKS(N); \
cudaStream_t stream = THCState_getCurrentStream(state); \
...
...
@@ -44,4 +43,6 @@ static inline __device__ bool eq(int32_t a, int32_t b) { return a == b; }
static
inline
__device__
bool
eq
(
int64_t
a
,
int64_t
b
)
{
return
a
==
b
;
}
static
inline
__device__
bool
eq
(
float
a
,
float
b
)
{
return
a
==
b
;
}
static
inline
__device__
bool
eq
(
double
a
,
double
b
)
{
return
a
==
b
;
}
#ifdef CUDA_HALF_TENSOR
static
inline
__device__
bool
eq
(
half
a
,
half
b
)
{
return
__half2float
(
a
)
==
__half2float
(
b
);
}
#endif
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