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
19130401
Unverified
Commit
19130401
authored
Mar 24, 2022
by
Matthias Fey
Committed by
GitHub
Mar 24, 2022
Browse files
fix half conversion (#280)
parent
ae1fce51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
csrc/cuda/utils.cuh
csrc/cuda/utils.cuh
+2
-2
No files found.
csrc/cuda/utils.cuh
View file @
19130401
...
...
@@ -9,11 +9,11 @@
__device__
__inline__
at
::
Half
__shfl_up_sync
(
const
unsigned
mask
,
const
at
::
Half
var
,
const
unsigned
int
delta
)
{
return
__shfl_up_sync
(
mask
,
(
__half
)
var
,
delta
);
return
__shfl_up_sync
(
mask
,
var
.
operator
__half
(
),
delta
);
}
__device__
__inline__
at
::
Half
__shfl_down_sync
(
const
unsigned
mask
,
const
at
::
Half
var
,
const
unsigned
int
delta
)
{
return
__shfl_down_sync
(
mask
,
(
__half
)
var
,
delta
);
return
__shfl_down_sync
(
mask
,
var
.
operator
__half
(
),
delta
);
}
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