inducer / inducer/pyopencl

RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE

Open
#325 1 comment 0 reactions 0 assignees View on GitHub
need-info
Dominant language
Python
Stars
1.2k
Forks
247
Avg merge
7h 2m
Merged PRs (30d)
6

Description

**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 :

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!**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.