Skip to content
Snippets Groups Projects
Commit f1da0f9b authored by Isuru Fernando's avatar Isuru Fernando
Browse files

Check for PYOPENCL_HOME in ocl-icd

parent a5072fca
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,9 @@ from pyopencl.version import VERSION, VERSION_STATUS, VERSION_TEXT # noqa
import logging
logger = logging.getLogger(__name__)
import os
os.environ["PYOPENCL_HOME"] = os.path.dirname(os.path.abspath(__file__))
try:
import pyopencl._cl as _cl
except ImportError:
......
......@@ -18,6 +18,8 @@ git clone --branch v2.2.12 https://github.com/OCL-dev/ocl-icd
cd ocl-icd
curl -L -O https://raw.githubusercontent.com/conda-forge/ocl-icd-feedstock/master/recipe/install-headers.patch
git apply install-headers.patch
curl -L -O https://github.com/isuruf/ocl-icd/commit/c28a6f39634d73c844d70b12120b38c40b17aecc.patch
git apply c28a6f39634d73c844d70b12120b38c40b17aecc.patch
autoreconf -i
chmod +x configure
./configure --prefix=/usr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment