I am very new to PyFR and want to set it up on my MacBook Pro (2015) for running some simple test cases. I followed the steps exactly on this installation page, but have encounter the issue as the following:
First, when I was downloading ‘libxsmm’ with
git clone git@github.com:libxsmm/libxsmm.git
I encountered an error indicating missing authentication (or something similar), so I did
git clone git@github.com/libxsmm/libxsmm.git
instead and followed the rest. I set up the run with
pyfr run -b openmp -p 2d-inc-cylinder.pyfrm inc-cylinder.ini
but then I encountered an error with missing kernel ‘mul’, which seems to be related to the ‘libxsmm’ library.
File "/Users/huqiyang/pyfr-venv/lib/python3.11/site-packages/pyfr/backends/base/backend.py", line 173, in kernel
raise KeyError(f'Kernel "{name}" has no providers')
KeyError: 'Kernel "mul" has no providers'
I am not sure how to resolve this and I wish to know which backend I should be looking into for running on my 2015 MacBook Pro. Really appreciate for any help!
Have you added PYFR_LIBXSMM_LIBRARY_PATH=... to your environment? Also I recently had a similar problem and, from lscpu or the mac equivalent, I think you need to at least have the AVX2 instruction set extension.
I did huqiyang@DN0a2252e4 libxsmm % export PYFR_XSMM_LIBRARY_PATH=pwd/lib/libxsmm.dylib when I was installing libxsmm, with which I assume the environment variables is set up properly.
In terms of AVX2 extension, I might need to check on that.
Would you please let me know the source of the correct version of libxsmm? I installed my current version libxsmm followed the instruction in PyFR documentation.
I have just confirmed that the test case is working fine with the current develop version of PyFR from GitHub along with libxsmm revision 15d55050cf836caab418d41865b3108b55b67934. Specifically, on an Intel Mac with a 2.8 GHz Quad-Core Intel Core i7: