|
27 | 27 |
|
28 | 28 | # skip checkout/build of IMEX/LLVM if there is an install
|
29 | 29 | if [ ! -d "${INSTALLED_DIR}/imex/lib" ]; then
|
30 |
| - # FIXME work-around as long dpcpp conda packages are incomplete |
31 |
| - export SYCL_DIR="/opt/intel/oneapi/compiler/latest/linux" |
32 |
| - if [ ! -d "${SYCL_DIR}" ]; then |
33 |
| - export SYCL_DIR="/opt/intel/oneapi/compiler/latest" |
34 |
| - if [ ! -d "${SYCL_DIR}" ]; then |
35 |
| - echo "Fatal error: SYCL_DIR not found" |
36 |
| - exit 1 |
37 |
| - fi |
38 |
| - fi |
39 |
| - # export SYCL_DIR=${CONDA_PREFIX} |
40 |
| - echo "Using SYCLDIR=${SYCL_DIR}" |
| 30 | + export SYCL_DIR=${CONDA_PREFIX} |
| 31 | + echo "Using SYCL_DIR=${SYCL_DIR}" |
| 32 | + |
| 33 | + # grrrr |
| 34 | + # as long as the conda packages differ from system oneAPI installs we need to explicitly provide the include dir for SYCL |
| 35 | + # 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 |
41 | 52 |
|
42 | 53 | rm -rf ${INSTALLED_DIR}/imex
|
43 | 54 | IMEX_SHA=$(cat imex_version.txt)
|
@@ -83,10 +94,11 @@ if [ ! -d "${INSTALLED_DIR}/imex/lib" ]; then
|
83 | 94 | -DLLVM_ENABLE_ZSTD=OFF \
|
84 | 95 | -DLLVM_ENABLE_ZLIB=OFF \
|
85 | 96 | -DLLVM_EXTERNAL_PROJECTS="Imex" \
|
86 |
| - -DLLVM_EXTERNAL_IMEX_SOURCE_DIR=. \ |
87 |
| - -DLEVEL_ZERO_DIR=${INSTALLED_DIR}/level-zero \ |
88 |
| - -DIMEX_ENABLE_SYCL_RUNTIME=1 \ |
89 |
| - -DIMEX_ENABLE_L0_RUNTIME=1 |
| 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 |
90 | 102 | cmake --build build
|
91 | 103 | cmake --install build --prefix=${INSTALLED_DIR}/imex
|
92 | 104 | popd
|
|
0 commit comments