"platforms/cuda-old/tests/TstCudaUsingParameterFile.cpp" did not exist on "625180a60d0b3dce388ada28034aed24a7d331d2"
Commit 028ad9d0 authored by Peter Eastman's avatar Peter Eastman
Browse files

Workaround for crash on AMD GPUs

parent 2cf8711f
...@@ -113,7 +113,7 @@ __kernel void copyDataToBuckets(__global const TYPE* restrict data, __global TYP ...@@ -113,7 +113,7 @@ __kernel void copyDataToBuckets(__global const TYPE* restrict data, __global TYP
/** /**
* Sort the data in each bucket. * 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)) { for (int index = get_group_id(0); index < numBuckets; index += get_num_groups(0)) {
int startIndex = (index == 0 ? 0 : bucketOffset[index-1]); int startIndex = (index == 0 ? 0 : bucketOffset[index-1]);
int endIndex = bucketOffset[index]; int endIndex = bucketOffset[index];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment