Skip to content

Commit f3d9276

Browse files
Allow DPCTL to build when intel-cmplr-lib-rt is absent from $PREFIX
The change allows icpx to find these libraries in $BUILD_PREFIX
1 parent f4591d3 commit f3d9276

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

conda-recipe/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib"
77
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PREFIX/compiler/lib/intel64_lin:$PREFIX/compiler/lib:$PREFIX/lib"
88

9+
# This is necessary to help DPC++ find Intel libraries such as SVML, IRNG, etc in build prefix
10+
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${BUILD_PREFIX}/lib"
11+
912
# Intel LLVM must cooperate with compiler and sysroot from conda
1013
echo "--gcc-toolchain=${BUILD_PREFIX} --sysroot=${BUILD_PREFIX}/${HOST}/sysroot -target ${HOST}" > icpx_for_conda.cfg
1114
export ICPXCFG="$(pwd)/icpx_for_conda.cfg"

0 commit comments

Comments
 (0)