Skip to content
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

RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE #325

Open
AmeliaCulpP1819 opened this issue Jan 24, 2020 · 1 comment
Open

RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE #325

AmeliaCulpP1819 opened this issue Jan 24, 2020 · 1 comment

Comments

@AmeliaCulpP1819
Copy link

Hi there! Pretty new to opencl and trying to run a nengo neural net with an OCL simulator. When I run the program I get this error message:

RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE

Build on <pyopencl.Device 'Oclgrind Simulator' on 'Oclgrind' at 0x556af9fc7900>:

fatal error: malformed or corrupted AST file: 'could not find file '/home/culpa/anaconda3/envs/nengoenv/lib/clang/9.0.0/include/opencl-c-base.h
(options: -I /home/culpa/anaconda3/envs/nengoenv/lib/python3.8/site-packages/pyopencl/cl -D PYOPENCL_USING_OCLGRIND)
(source saved as /tmp/tmp1fdqoohq.cl)

I was expecting the pyopencl.Device to be my AMD GPU not 'Oclgrind Simulator,' so I ran pyopencl.get_platforms() and platform.get_devices() but did not see my GPU listed. Does this mean that pyopencl is not interfacing with the systemwide ICD? Does anyone know how to fix that? Secondarily--it may be possible to run the code with oclgrind as a simulator, but the build program is looking for clang--do I need to install clang to make oclgrind run??? Thanks in advance for any help you have!

@isuruf
Copy link
Collaborator

isuruf commented Jan 24, 2020

Reported the issue in Oclgrind at jrprice/Oclgrind#180 (comment)
Can you do conda install clang=9.0.0 -n nengoenv until this bug is fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants