Skip to content

Commit 8e2e969

Browse files
committed
fix Intel oneAP path
1 parent 0a08fb0 commit 8e2e969

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

python/tools/prepare_build_environment_windows.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,21 @@ rm -r build
8787

8888
cp README.md python/
8989
cp $CTRANSLATE2_ROOT/bin/ctranslate2.dll python/ctranslate2/
90-
cp "C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/redist/intel64_win/compiler/libiomp5md.dll" python/ctranslate2/
90+
91+
# Find the libiomp5md.dll file
92+
LIBIOMP5_PATH=$(find "C:/Program Files (x86)/Intel/oneAPI" -name "libiomp5md.dll" -type f 2>/dev/null | head -1)
93+
94+
# Check if file was found
95+
if [ -z "$LIBIOMP5_PATH" ]; then
96+
echo "Error: libiomp5md.dll not found in Intel oneAPI installation."
97+
echo "Please ensure Intel oneAPI HPC Toolkit (with compiler) is installed."
98+
echo ""
99+
echo "Alternative locations to check manually:"
100+
echo "- C:/Program Files/Intel/oneAPI/compiler/*/windows/redist/intel64_win/compiler/"
101+
echo "- C:/Program Files (x86)/Intel/oneAPI/compiler/*/windows/redist/intel64_win/compiler/"
102+
exit 1
103+
fi
104+
echo "Found libiomp5md.dll at: $LIBIOMP5_PATH"
105+
106+
cp "$LIBIOMP5_PATH" python/ctranslate2/
91107
cp "$CUDA_ROOT/bin/cudnn64_9.dll" python/ctranslate2/

0 commit comments

Comments
 (0)