-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std::logic_error when running examples #23
Comments
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 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.
E.g. - deinstall/damage the driver. |
OpenCL seems to work fine with Darktable at least.
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? |
|
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
The text was updated successfully, but these errors were encountered: