From 86a3cb5d2e1a8efdd8e367b3bfd26ec0024cddf2 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 30 Apr 2013 12:18:46 -0700 Subject: [PATCH] only use GPU devices for Bitonic Sort (require workgroup sizes > 1, and most CPU devices only provide 1) --- test/OpenCL/BitonicSort/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/OpenCL/BitonicSort/main.cpp b/test/OpenCL/BitonicSort/main.cpp index ca5a19e6a..9ca4c0411 100644 --- a/test/OpenCL/BitonicSort/main.cpp +++ b/test/OpenCL/BitonicSort/main.cpp @@ -49,7 +49,7 @@ int main(int argc, char* argv[]) b3Clock clock; - cl_device_type deviceType = CL_DEVICE_TYPE_ALL; + cl_device_type deviceType = CL_DEVICE_TYPE_GPU;//ALL; const char* vendorSDK = b3OpenCLUtils::getSdkVendorName(); printf("This program was compiled using the %s OpenCL SDK\n",vendorSDK); @@ -189,4 +189,4 @@ int main(int argc, char* argv[]) printf("press \n"); getchar(); return 0; -} \ No newline at end of file +}