Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
65caf22b
Commit
65caf22b
authored
May 14, 2013
by
Yutong Zhao
Browse files
Fixes a race-condition in compute Range
parent
31d761d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
platforms/cuda/src/kernels/sort.cu
platforms/cuda/src/kernels/sort.cu
+1
-0
No files found.
platforms/cuda/src/kernels/sort.cu
View file @
65caf22b
...
@@ -73,6 +73,7 @@ __global__ void computeRange(const DATA_TYPE* __restrict__ data, unsigned int le
...
@@ -73,6 +73,7 @@ __global__ void computeRange(const DATA_TYPE* __restrict__ data, unsigned int le
__syncthreads
();
__syncthreads
();
}
}
minimum
=
rangeBuffer
[
0
];
minimum
=
rangeBuffer
[
0
];
__syncthreads
();
rangeBuffer
[
threadIdx
.
x
]
=
maximum
;
rangeBuffer
[
threadIdx
.
x
]
=
maximum
;
__syncthreads
();
__syncthreads
();
for
(
unsigned
int
step
=
1
;
step
<
blockDim
.
x
;
step
*=
2
)
{
for
(
unsigned
int
step
=
1
;
step
<
blockDim
.
x
;
step
*=
2
)
{
...
...
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