File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -87,5 +87,21 @@ rm -r build
8787
8888cp README.md python/
8989cp $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/
91107cp " $CUDA_ROOT /bin/cudnn64_9.dll" python/ctranslate2/
You can’t perform that action at this time.
0 commit comments