We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bdeb37d + 7dc575a commit 79fbb79Copy full SHA for 79fbb79
conda-recipe/build.sh
@@ -30,3 +30,8 @@ else
30
# Perform regular install
31
${PYTHON} setup.py install ${SKBUILD_ARGS}
32
fi
33
+
34
+# need to create this folder so ensure that .dpctl-post-link.sh can work correctly
35
+mkdir -p $PREFIX/etc/OpenCL/vendors
36
37
+cp $RECIPE_DIR/dpctl-post-link.sh $PREFIX/bin/.dpctl-post-link.sh
conda-recipe/dpctl-post-link.sh
@@ -0,0 +1,8 @@
1
+#!/usr/bin/bash
2
3
+systemwide_icd=/etc/OpenCL/vendors/intel.icd
4
+local_vendors=$CONDA_PREFIX/etc/OpenCL/vendors/
5
6
+if [[ -f $systemwide_icd && -d $local_vendors && ! -f $local_vendors/intl-ocl-gpu.icd ]]; then
7
+ ln -s $systemwide_icd $local_vendors/intel-ocl-gpu.icd
8
+fi
0 commit comments