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
2b824f4d
"docs/vscode:/vscode.git/clone" did not exist on "84b4348f10211b396c5e6827ad977c23d2a03568"
Commit
2b824f4d
authored
Dec 20, 2017
by
rusty1s
Browse files
typo
parent
66320686
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torch_scatter/kernel/THCAtomics.cuh
torch_scatter/kernel/THCAtomics.cuh
+2
-2
No files found.
torch_scatter/kernel/THCAtomics.cuh
View file @
2b824f4d
...
...
@@ -5,7 +5,7 @@ struct TH_CONCAT_3(Atomic, NAME, IntegerImpl); \
template<typename T> \
struct TH_CONCAT_3(Atomic, NAME, IntegerImpl)<T, 1> { \
inline __device__ void operator()(T *address, T val) { \
uint32_t *
address_as_ui = (uint32_t *) (address - ((size_t) address & 3)); \
uint32_t *address_as_ui = (uint32_t *) (address - ((size_t) address & 3)); \
uint32_t old = *address_as_ui; \
uint32_t shift = ((size_t) address & 3) * 8; \
uint32_t res; \
...
...
@@ -23,7 +23,7 @@ struct TH_CONCAT_3(Atomic, NAME, IntegerImpl)<T, 1> { \
template<typename T> \
struct TH_CONCAT_3(Atomic, NAME, IntegerImpl)<T, 2> { \
inline __device__ void operator()(T *address, T val) { \
uint32_t *
address_as_ui = (uint32_t *) ((char *) address - ((size_t) address & 2)); \
uint32_t *address_as_ui = (uint32_t *) ((char *) address - ((size_t) address & 2)); \
uint32_t old = *address_as_ui; \
uint32_t res; \
uint32_t newval; \
...
...
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