Unable to load xsmm

pyfr run -b openmp -p couette_flow_2d.pyfrm couette_flow_2d.ini
Traceback (most recent call last):
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/ctypesutil.py”, line 58, in load_library
return ctypes.CDLL(lname)
File “/usr/lib/python3.10/ctypes/init.py”, line 374, in init
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/imanshi/pyFR-env/bin/pyfr”, line 8, in
sys.exit(main())
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/main.py”, line 115, in main
args.process(args)
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/main.py”, line 248, in process_run
_process_common(
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/main.py”, line 227, in _process_common
backend = get_backend(args.backend, cfg)
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/backends/init.py”, line 12, in get_backend
return subclass_where(BaseBackend, name=name.lower())(cfg)
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/backends/openmp/base.py”, line 47, in init
self._providers = [k(self) for k in kprovcls]
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/backends/openmp/base.py”, line 47, in
self._providers = [k(self) for k in kprovcls]
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/backends/openmp/xsmm.py”, line 38, in init
self._wrappers = XSMMWrappers()
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/ctypesutil.py”, line 15, in init
lib = load_library(self._libname)
File “/home/imanshi/pyFR-env/lib/python3.10/site-packages/pyfr/ctypesutil.py”, line 67, in load_library
raise OSError(f’Unable to load {name}’)
OSError: Unable to load xsmm

for this command it is showing OSerror-Unable to load xsmm
Even after installing the xsmm lib and setting the path for it.I am unable to find the libxsmm.so file in it’s folder to st the path.
how to solve the above error?

Is there a libxsmm.so in the build directory for libxsmm?

Regards, Freddie.

Yes , libxsmm.so is in the lib folder of the build directory.

I am using this command to link at the address the example folder of pyfr:
export PKG_CONFIG_PATH=/home/himanshi/pyfr-venv/libxsmm/lib/libxsmm.so

As noted in the install guide you want to set export PYFR_XSMM_LIBRARY_PATH=/path/to/libxsmm/lib/libxsmm.so Alternatively, you can install libxsmm to a directory on your library load path.

Regards, Freddie.

Done!but getting different error now,how to resolve this error?

Please read the install guide! As noted there libxsmm must be compiled with STATIC=0 BLAS=0 CODE_BUF_MAXSIZE=262144.

Regards, Freddie.

Thanks! Freddie
It’s working now.