Open JamesWrigley opened 8 years ago
Hi @JamesWrigley ,
according to the 'cl.h' - OpenCL header file, the error that corresponds to '-1' is defined as follows:
'#define CL_DEVICE_NOT_FOUND -1'
It looks like ASL is not able to find a device that supports OpenCL. The driver might be the issue here. Try to check whether your device supports OpenCL with other tools, like 'clinfo' or try any other OpenCL application to see whether it will run fine.
Regards.
It does seem that I have OpenCL support. This is the ouput of primusrun clinfo
: http://www.pasteall.org/75281/bash
But primusrun ./asl-locomotive
fails with the same error.
Is there a way to disable OpenCL?
The error occurs on this line:
https://github.com/AvtechScientific/ASL/blob/master/src/acl/aclHardware.cxx#L69
Interestingly that it passes this line (collecting information about available platforms) without errors:
https://github.com/AvtechScientific/ASL/blob/master/src/acl/aclHardware.cxx#L60
So try to run real computations using other OpenCL-based tools.
Is there a way to disable OpenCL?
E.g. - deinstall/damage the driver.
OpenCL seems to work fine with Darktable at least.
E.g. - deinstall/damage the driver.
Hmm, I see.
Strange...
Does 'asl-hardware' produce any output?
PS: are you sure that Darktable uses OpenCL in your case and not some fallback API?
./asl-hardware
produces the same error message. I'm pretty sure Darktable is using OpenCL, when I'm using it heavily the GPU temperature goes up, and nvidia-smi reports Darktable as one of the processes using the GPU (the other being Xorg).
Does Darktable has a Cuda backend?
Nope, not that I know of. No matter though, it's probably some bumblebee/nvidia weirdness. I might give it another go on Windows 10.
Ok, let us know about your progress...
Hi there, I'm getting the following error whenever I try to run an example:
$ locomotive ./asl-locomotive terminate called after throwing an instance of 'std::logic_error' what(): ASL ERROR: acl::Platform::getDevices() (-1). [1] 2565 abort (core dumped) ./asl-locomotive
Any ideas why this is happening? I'm using the proprietary NVIDIA drivers (with bumblebee) on Fedora 24. Both the version from the repos and my own build have the same problem.
Thanks, James