Skip to content
Snippets Groups Projects
Commit 5540dc51 authored by Gary Frost's avatar Gary Frost
Browse files

Avoid JVM crash ;) when user asks for CPU/OpenCL mode on a platform that does...

Avoid JVM crash ;) when user asks for CPU/OpenCL mode on a platform that does not support CPU mode (NVidia).
parent 0d1c587e
No related branches found
No related tags found
No related merge requests found
......@@ -1381,6 +1381,9 @@ class KernelRunner{
} else {
// We fetch the first CPU device
openCLDevice = (OpenCLDevice) OpenCLDevice.firstCPU();
if (openCLDevice == null){
return warnFallBackAndExecute(_entrypointName, _range, _passes, "CPU request can't be honored not CPU device");
}
}
} else {
if (openCLDevice.getType() == Device.TYPE.GPU) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment