"...opencl/tests/TestOpenCLMonteCarloFlexibleBarostat.cpp" did not exist on "8e8923a79d40e52f0e3311deeaa7eaf13d951a9f"
Commit 772a6850 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error

parent 5fb78b59
...@@ -187,6 +187,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device ...@@ -187,6 +187,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
// This attribute does not ensure that all queries are supported by the runtime so still have to // This attribute does not ensure that all queries are supported by the runtime so still have to
// check for errors. // check for errors.
try { try {
#ifdef CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD
// AMD has both 32 and 64 width SIMDs. Can determine by using: // AMD has both 32 and 64 width SIMDs. Can determine by using:
// simdWidth = device.getInfo<CL_DEVICE_WAVEFRONT_WIDTH_AMD>(); // simdWidth = device.getInfo<CL_DEVICE_WAVEFRONT_WIDTH_AMD>();
// Must catch cl:Error as will fail if runtime does not support queries. // Must catch cl:Error as will fail if runtime does not support queries.
...@@ -203,6 +204,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device ...@@ -203,6 +204,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
// If the queries are supported then must be newer than SDK 2.4. // If the queries are supported then must be newer than SDK 2.4.
amdPostSdk2_4 = true; amdPostSdk2_4 = true;
#endif
} }
catch (cl::Error err) { catch (cl::Error err) {
// Runtime does not support the query so is unlikely to be the newer scalar GPU. // Runtime does not support the query so is unlikely to be the newer scalar GPU.
......
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