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
028ad9d0
"vscode:/vscode.git/clone" did not exist on "2ad895a6cc530474cae7e24ace1e463018172d0e"
Commit
028ad9d0
authored
Oct 25, 2011
by
Peter Eastman
Browse files
Workaround for crash on AMD GPUs
parent
2cf8711f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/opencl/src/kernels/sort.cl
platforms/opencl/src/kernels/sort.cl
+1
-1
No files found.
platforms/opencl/src/kernels/sort.cl
View file @
028ad9d0
...
...
@@ -113,7 +113,7 @@ __kernel void copyDataToBuckets(__global const TYPE* restrict data, __global TYP
/**
*
Sort
the
data
in
each
bucket.
*/
__kernel
void
sortBuckets
(
__global
TYPE*
restrict
data,
__global
const
TYPE*
restrict
buckets,
int
numBuckets,
__global
const
int*
restrict
bucketOffset,
__local
TYPE*
restrict
buffer
)
{
__kernel
void
sortBuckets
(
__global
TYPE*
data,
__global
const
TYPE*
buckets,
int
numBuckets,
__global
const
int*
restrict
bucketOffset,
__local
TYPE*
buffer
)
{
for
(
int
index
=
get_group_id
(
0
)
; index < numBuckets; index += get_num_groups(0)) {
int
startIndex
=
(
index
==
0
?
0
:
bucketOffset[index-1]
)
;
int
endIndex
=
bucketOffset[index]
;
...
...
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