@Override
public Object run() {
NativeLibrary libOpenCL = JOCLJNILibLoader.loadOpenCL();
if(libOpenCL == null) {
throw new JogampRuntimeException("OpenCL library not found.");
}
//eagerly init function to query extension addresses (used in reset())
table.initEntry("clGetExtensionFunctionAddress", libOpenCL);
table.reset(libOpenCL);
return null;
}
});
// System.out.println("\n"+table);
// System.out.println("unavailable functions: "+table.getNullPointerFunctions());
}catch(UnsatisfiedLinkError ex) {
System.err.println(JOCLVersion.getAllVersions());
throw ex;
}catch(Exception ex) {
System.err.println(JOCLVersion.getAllVersions());
throw new JogampRuntimeException("JOCL initialization error.", ex);
}
}