Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sudhanshu Sane
VTK-m
Commits
e5c4aa3f
Commit
e5c4aa3f
authored
Mar 08, 2016
by
Matt Larsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing cuda index error
parent
00a7f6c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vtkm/cont/cuda/internal/DeviceAdapterAlgorithmCuda.h
vtkm/cont/cuda/internal/DeviceAdapterAlgorithmCuda.h
+1
-1
No files found.
vtkm/cont/cuda/internal/DeviceAdapterAlgorithmCuda.h
View file @
e5c4aa3f
...
...
@@ -206,7 +206,7 @@ public:
}
inline
__device__
T
CompareAndSwap
(
vtkm
::
I
nt64
*
address
,
const
vtkm
::
Int64
&
newValue
,
const
vtkm
::
Int64
&
oldValue
)
const
T
CompareAndSwap
(
vtkm
::
I
d
index
,
const
vtkm
::
Int64
&
newValue
,
const
vtkm
::
Int64
&
oldValue
)
const
{
T
*
lockedValue
=
::
thrust
::
raw_pointer_cast
(
this
->
Portal
.
GetIteratorBegin
()
+
index
);
return
vtkmCompareAndSwap
(
lockedValue
,
newValue
,
oldValue
);
...
...
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