"vscode:/vscode.git/clone" did not exist on "2ad895a6cc530474cae7e24ace1e463018172d0e"
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
/**
* 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];
......
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