File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,19 @@ if [ ! -d "${INSTALLED_DIR}/imex/lib" ]; then
33
33
# grrrr
34
34
# as long as the conda packages differ from system oneAPI installs we need to explicitly provide the include dir for SYCL
35
35
# see also below in cmake call
36
- SYCL_INC_DIR=$( dirname $( dirname $( find ${CONDA_PREFIX} -d -name __spriv | head -n 1) ) )
37
- if [ ! -d " ${SYCL_INC_DIR} " ]; then
36
+ for root in " ${CONDA_PREFIX} " " ${BUILD_PREFIX} " ; do
37
+ spirvdir=$( find " ${root} " -d -name __spriv | head -n 1)
38
+ if [ -d " ${spirvdir} " ]; then
39
+ SYCL_INC_DIR=$( dirname $( dirname " ${spirvdir} " ) )
40
+ break
41
+ fi
42
+ done
43
+ if [ -d " ${SYCL_INC_DIR} " ]; then
44
+ echo " Using SYCL_INC_DIR=${SYCL_INC_DIR} "
45
+ else
38
46
echo " Fatal error: SYCL_INC_DIR not found"
39
47
exit 1
40
48
fi
41
- echo " Using SYCL_INC_DIR=${SYCL_INC_DIR} "
42
49
43
50
rm -rf ${INSTALLED_DIR} /imex
44
51
IMEX_SHA=$( cat imex_version.txt)
You can’t perform that action at this time.
0 commit comments