only use GPU devices for Bitonic Sort (require workgroup sizes > 1, and most CPU devices only provide 1)
This commit is contained in:
@@ -49,7 +49,7 @@ int main(int argc, char* argv[])
|
|||||||
b3Clock clock;
|
b3Clock clock;
|
||||||
|
|
||||||
|
|
||||||
cl_device_type deviceType = CL_DEVICE_TYPE_ALL;
|
cl_device_type deviceType = CL_DEVICE_TYPE_GPU;//ALL;
|
||||||
const char* vendorSDK = b3OpenCLUtils::getSdkVendorName();
|
const char* vendorSDK = b3OpenCLUtils::getSdkVendorName();
|
||||||
|
|
||||||
printf("This program was compiled using the %s OpenCL SDK\n",vendorSDK);
|
printf("This program was compiled using the %s OpenCL SDK\n",vendorSDK);
|
||||||
@@ -189,4 +189,4 @@ int main(int argc, char* argv[])
|
|||||||
printf("press <Enter>\n");
|
printf("press <Enter>\n");
|
||||||
getchar();
|
getchar();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user