Closed oldmikeyang closed 11 months ago
This dependency has been removed and will be released in the next version. For version 1.0.0, please set mklml manually:
wget https://github.com/oneapi-src/oneDNN/releases/download/v0.21/mklml_lnx_2019.0.5.20190502.tgz \
&& tar -xzf mklml_lnx_2019.0.5.20190502.tgz \
&& rm -f mklml_lnx_2019.0.5.20190502.tgz
export LD_LIBRARY_PATH=${where is your mklml directory}/mklml_lnx_2019.0.5.20190502/lib:$LD_LIBRARY_PATH
The following is the error (cpu-xfaster) llm@SPR-ARC:~/xFasterTransformer/build$ python -d -m xfastertransformer.example.web_demo Traceback (most recent call last): File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/runpy.py", line 110, in _get_module_details import(pkg_name) File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/site-packages/xfastertransformer/init.py", line 4, in
torch.classes.load_library(os.path.dirname(os.path.abspath(file)) + "/libxfastertransformer_pt.so")
File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/site-packages/torch/_classes.py", line 51, in load_library
torch.ops.load_library(path)
File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/site-packages/torch/_ops.py", line 643, in load_library
ctypes.CDLL(path)
File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: **libmklml_intel.so: cannot open shared object file: No such file or directory**
The following is the oneDNN from Intel oneAPI 23.03, there is no file name is libmklml_intel.so (cpu-xfaster) llm@SPR-ARC:/opt/intel/oneapi$ find . -name '*_intel.so' ./mkl/2023.2.0/lib/ia32/libmkl_intel.so