Commit 156b4e9a authored by Daniel Lehmberg's avatar Daniel Lehmberg

WIP: minor

parent c8360445
Pipeline #94073 failed with stages
in 3 minutes and 11 seconds
......@@ -86,9 +86,12 @@ public class CLUtils {
}
}
}
}
}catch(Exception e){
log.warn("No OpenCL support: " + e.getMessage());
}
return supportedPlatforms;
}
/**
......@@ -100,6 +103,7 @@ public class CLUtils {
* @return a pair of addresses (platform address, device address)
*/
public static Optional<Pair<Long, Long>> getFirstSupportedPlatformAndDevice(final int deviceType) {
try (MemoryStack stack = stackPush()) {
IntBuffer pi = stack.mallocInt(1);
InfoUtils.checkCLError(clGetPlatformIDs(null, pi));
......@@ -124,7 +128,10 @@ public class CLUtils {
}
}
}
} catch (Exception e) {
log.warn("No OpenCL device found: " + e.getMessage());
}
return Optional.empty();
}
......
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