"serialization/src/GayBerneForceProxy.cpp" did not exist on "ede48b85dc905d36a0314b7fcaf2c95b6d78635e"
Commit 7439189b authored by peastman's avatar peastman
Browse files

Do not register OpenCL platform if no implementations are available

parent 138de127
......@@ -141,6 +141,12 @@ bool OpenCLPlatform::isPlatformSupported() {
return false;
#endif
// Make sure at least one OpenCL implementation is installed.
std::vector<cl::Platform> platforms;
cl::Platform::get(&platforms);
if (platforms.size() == 0)
return false;
return true;
}
......
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