File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 33
33
34
34
# need to create this folder so ensure that .dpctl-post-link.sh can work correctly
35
35
mkdir -p $PREFIX /etc/OpenCL/vendors
36
+ echo " dpctl creates symbolic link to system installed /etc/OpenCL/vendors/intel.icd as a work-around." > $PREFIX /etc/OpenCL/vendors/.dpctl_readme
36
37
37
38
cp $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 1
1
#! /usr/bin/bash
2
2
3
3
systemwide_icd=/etc/OpenCL/vendors/intel.icd
4
- local_vendors=$CONDA_PREFIX /etc/OpenCL/vendors/
4
+ local_vendors=$PREFIX /etc/OpenCL/vendors/
5
+ icd_fn=$local_vendors /intel-ocl-gpu.icd
5
6
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
7
+ if [[ -f $systemwide_icd && -d $local_vendors && ! -f $icd_fn ]]; then
8
+ ln -s $systemwide_icd $icd_fn
8
9
fi
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