Skip to content

Commit ba9ae0c

Browse files
committed
no sycl/l0
1 parent 464fdbf commit ba9ae0c

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

conda-recipe/build.sh

+21-21
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ if [ ! -d "${INSTALLED_DIR}/imex/lib" ]; then
3333
# grrrr
3434
# as long as the conda packages differ from system oneAPI installs we need to explicitly provide the include dir for SYCL
3535
# see also below in cmake call
36-
for root in "${CONDA_PREFIX}" "${BUILD_PREFIX}"; do
37-
spirvdir=$(find "${root}" -type d -name __spirv | head -n 1)
38-
if [ -d "${spirvdir}" ]; then
39-
SPIRV_INC_DIR=$(dirname "${spirvdir}")
40-
break
41-
fi
42-
done
43-
if [ -d "${SPIRV_INC_DIR}" ]; then
44-
echo "Using SPIRV_INC_DIR=${SPIRV_INC_DIR}"
45-
mkdir -p "${SRC_DIR}/grrrr/include"
46-
ln -s "${SPIRV_INC_DIR}" "${SRC_DIR}/grrrr/include/CL"
47-
SPIRV_INC_DIR="${SRC_DIR}/grrrr/include"
48-
else
49-
echo "Fatal error: SPIRV_INC_DIR not found"
50-
exit 1
51-
fi
36+
# for root in "${CONDA_PREFIX}" "${BUILD_PREFIX}"; do
37+
# spirvdir=$(find "${root}" -type d -name __spirv | head -n 1)
38+
# if [ -d "${spirvdir}" ]; then
39+
# SPIRV_INC_DIR=$(dirname "${spirvdir}")
40+
# break
41+
# fi
42+
# done
43+
# if [ -d "${SPIRV_INC_DIR}" ]; then
44+
# echo "Using SPIRV_INC_DIR=${SPIRV_INC_DIR}"
45+
# mkdir -p "${SRC_DIR}/grrrr/include"
46+
# ln -s "${SPIRV_INC_DIR}" "${SRC_DIR}/grrrr/include/CL"
47+
# SPIRV_INC_DIR="${SRC_DIR}/grrrr/include"
48+
# else
49+
# echo "Fatal error: SPIRV_INC_DIR not found"
50+
# exit 1
51+
# fi
5252

5353
rm -rf ${INSTALLED_DIR}/imex
5454
IMEX_SHA=$(cat imex_version.txt)
@@ -94,11 +94,11 @@ if [ ! -d "${INSTALLED_DIR}/imex/lib" ]; then
9494
-DLLVM_ENABLE_ZSTD=OFF \
9595
-DLLVM_ENABLE_ZLIB=OFF \
9696
-DLLVM_EXTERNAL_PROJECTS="Imex" \
97-
-DLLVM_EXTERNAL_IMEX_SOURCE_DIR=. \
98-
-DLEVEL_ZERO_DIR=${INSTALLED_DIR}/level-zero \
99-
-DIMEX_ENABLE_SYCL_RUNTIME=1 \
100-
-DIMEX_ENABLE_L0_RUNTIME=1 \
101-
-DCMAKE_CXX_FLAGS="-I${SPIRV_INC_DIR}" # grrrr
97+
-DLLVM_EXTERNAL_IMEX_SOURCE_DIR=.
98+
# -DLEVEL_ZERO_DIR=${INSTALLED_DIR}/level-zero \
99+
# -DIMEX_ENABLE_SYCL_RUNTIME=1 \
100+
# -DIMEX_ENABLE_L0_RUNTIME=1 \
101+
# -DCMAKE_CXX_FLAGS="-I${SPIRV_INC_DIR}" # grrrr
102102
cmake --build build
103103
cmake --install build --prefix=${INSTALLED_DIR}/imex
104104
popd

0 commit comments

Comments
 (0)