Hello Team PyFR,
I am unable to run pyfr with Openmp.
(cuda works fine)
followed the instructions in the installation page of pyfr for libxsmm.
Could you please suggest what should be done for such error.
steps followed for libxsmm
git clone https://github.com/libxsmm/libxsmm.git
cd libxsmm
make -j4 STATIC=0 BLAS=0
export PYFR_XSMM_LIBRARY_PATH="path/to/lib/libxsmm.so"
Error when using openmp
Traceback (most recent call last):
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/ctypesutil.py", line 58, in load_library
return ctypes.CDLL(lname)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/ctypes/__init__.py", line 382, in __init__
Traceback (most recent call last):
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/ctypesutil.py", line 58, in load_library
self._handle = _dlopen(self._name, mode)
OSError: libxsmm.so: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vg767303/miniconda3/envs/PyFR/bin/pyfr", line 8, in <module>
sys.exit(main())
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/__main__.py", line 118, in main
return ctypes.CDLL(lname)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/ctypes/__init__.py", line 382, in __init__
args.process(args)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/__main__.py", line 251, in process_run
_process_common(
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/__main__.py", line 230, in _process_common
backend = get_backend(args.backend, cfg)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/backends/__init__.py", line 12, in get_backend
self._handle = _dlopen(self._name, mode)
OSError: libxsmm.so: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vg767303/miniconda3/envs/PyFR/bin/pyfr", line 8, in <module>
sys.exit(main())
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/__main__.py", line 118, in main
return subclass_where(BaseBackend, name=name.lower())(cfg)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/backends/openmp/base.py", line 58, in __init__
args.process(args)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/__main__.py", line 251, in process_run
_process_common(
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/__main__.py", line 230, in _process_common
self._providers = [k(self) for k in kprovcls]
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/backends/openmp/base.py", line 58, in <listcomp>
backend = get_backend(args.backend, cfg)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/backends/__init__.py", line 12, in get_backend
self._providers = [k(self) for k in kprovcls]
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/backends/openmp/xsmm.py", line 34, in __init__
return subclass_where(BaseBackend, name=name.lower())(cfg)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/backends/openmp/base.py", line 58, in __init__
self._wrappers = w = XSMMWrappers()
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/ctypesutil.py", line 15, in __init__
self._lib = lib = load_library(self._libname)
File "/home/vg767303/miniconda3/envs/PyFR/lib/python3.9/site-packages/pyfr/ctypesutil.py", line 67, in load_library
raise OSError(f'Unable to load {name}')
OSError: Unable to load xsmm
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
Regards,
Manu.