File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,4 @@ mkdir -p $PREFIX/etc/OpenCL/vendors
3636echo " dpctl creates symbolic link to system installed /etc/OpenCL/vendors/intel.icd as a work-around." > $PREFIX /etc/OpenCL/vendors/.dpctl_readme
3737
3838cp $RECIPE_DIR /dpctl-post-link.sh $PREFIX /bin/.dpctl-post-link.sh
39+ cp $RECIPE_DIR /dpctl-pre-unlink.sh $PREFIX /bin/.dpctl-pre-unlink.sh
Original file line number Diff line number Diff line change 11#! /usr/bin/bash
22
33systemwide_icd=/etc/OpenCL/vendors/intel.icd
4- local_vendors=$CONDA_PREFIX /etc/OpenCL/vendors/
4+ local_vendors=$PREFIX /etc/OpenCL/vendors/
55icd_fn=$local_vendors /intel-ocl-gpu.icd
66
77if [[ -f $systemwide_icd && -d $local_vendors && ! -f $icd_fn ]]; then
Original file line number Diff line number Diff line change 1+ #! /usr/bin/bash
2+
3+ local_vendors=$PREFIX /etc/OpenCL/vendors/
4+ icd_fn=$local_vendors /intel-ocl-gpu.icd
5+
6+ if [[ -L $icd_fn ]]; then
7+ rm $icd_fn
8+ fi
You can’t perform that action at this time.
0 commit comments