When using AMD CPU with PyFR

Hello PyFR team,

I start AMD EPYC 9334 32-Core Processor. Do you know how to fix it ?
I did same action as this page(Failed to run example cases using openmp as backend - #24 by hwtang).But I got an error like below.

(pyfr-venv) test@test:~/test_pyfr$ pyfr run -b openmp -p cube_hex24.pyfrm config.ini

LIBXSMM_VERSION: main_stable-1.17-3681 (25693793)
LIBXSMM_TARGET: cpx [AMD EPYC 9334 32-Core Processor]
Registry and code: 13 MB (spmdm=1)
Command: /home/test/libxsmm/pyfr-venv/bin/python /home/test/libxsmm/pyfr-venv/bin/pyfr run -b openmp -p cube_hex24.pyfrm config.ini
Uptime: 3.243477 s
[test:50756] *** Process received signal ***
[test:50756] Signal: Segmentation fault (11)
[test:50756] Associated errno: Unknown error 21986 (21986)
[test:50756] Signal code:  (-1087788416)
[test:50756] Failing at address: 0x55e2bf29ac88
[test:50756] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f4f18469520]
[test:50756] [ 1] /home/test/libxsmm/lib/libxsmm.so(libxsmm_fsspmdm_create+0x2d7)[0x7f4f0e671077]
[test:50756] [ 2] /lib/x86_64-linux-gnu/libffi.so.8(+0x7e2e)[0x7f4f17ec8e2e]
[test:50756] [ 3] /lib/x86_64-linux-gnu/libffi.so.8(+0x4493)[0x7f4f17ec5493]
[test:50756] [ 4] /usr/lib/python3.10/lib-dynload/_ctypes.cpython-310-x86_64-linux-gnu.so(+0xa3e9)[0x7f4f154c03e9]
[test:50756] [ 5] /usr/lib/python3.10/lib-dynload/_ctypes.cpython-310-x86_64-linux-gnu.so(+0x13302)[0x7f4f154c9302]
[test:50756] [ 6] /home/test/libxsmm/pyfr-venv/bin/python(_PyObject_MakeTpCall+0x25b)[0x55e2bee4d5eb]
[test:50756] [ 7] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x6aa1)[0x55e2bee461f1]
[test:50756] [ 8] /home/test/libxsmm/pyfr-venv/bin/python(+0x16e4e1)[0x55e2bee654e1]
[test:50756] [ 9] /home/test/libxsmm/pyfr-venv/bin/python(PyObject_Call+0x122)[0x55e2bee66192]
[test:50756] [10] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x2b71)[0x55e2bee422c1]
[test:50756] [11] /home/test/libxsmm/pyfr-venv/bin/python(+0x16e4e1)[0x55e2bee654e1]
[test:50756] [12] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x1981)[0x55e2bee410d1]
[test:50756] [13] /home/test/libxsmm/pyfr-venv/bin/python(_PyFunction_Vectorcall+0x7c)[0x55e2bee5770c]
[test:50756] [14] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x6bd)[0x55e2bee3fe0d]
[test:50756] [15] /home/test/libxsmm/pyfr-venv/bin/python(_PyFunction_Vectorcall+0x7c)[0x55e2bee5770c]
[test:50756] [16] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x802)[0x55e2bee3ff52]
[test:50756] [17] /home/test/libxsmm/pyfr-venv/bin/python(_PyFunction_Vectorcall+0x7c)[0x55e2bee5770c]
[test:50756] [18] /home/test/libxsmm/pyfr-venv/bin/python(_PyObject_FastCallDictTstate+0x16d)[0x55e2bee4c82d]
[test:50756] [19] /home/test/libxsmm/pyfr-venv/bin/python(+0x16a744)[0x55e2bee61744]
[test:50756] [20] /home/test/libxsmm/pyfr-venv/bin/python(_PyObject_MakeTpCall+0x1fc)[0x55e2bee4d58c]
[test:50756] [21] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x71b8)[0x55e2bee46908]
[test:50756] [22] /home/test/libxsmm/pyfr-venv/bin/python(+0x16e62e)[0x55e2bee6562e]
[test:50756] [23] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x2b71)[0x55e2bee422c1]
[test:50756] [24] /home/test/libxsmm/pyfr-venv/bin/python(_PyObject_FastCallDictTstate+0xc4)[0x55e2bee4c784]
[test:50756] [25] /home/test/libxsmm/pyfr-venv/bin/python(+0x16a7e5)[0x55e2bee617e5]
[test:50756] [26] /home/test/libxsmm/pyfr-venv/bin/python(_PyObject_MakeTpCall+0x1fc)[0x55e2bee4d58c]
[test:50756] [27] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x6516)[0x55e2bee45c66]
[test:50756] [28] /home/test/libxsmm/pyfr-venv/bin/python(_PyFunction_Vectorcall+0x7c)[0x55e2bee5770c]
[test:50756] [29] /home/test/libxsmm/pyfr-venv/bin/python(_PyEval_EvalFrameDefault+0x6bd)[0x55e2bee3fe0d]
[test:50756] *** End of error message ***
Segmentation fault (core dumped)

Hello Yuji,

Not sure if you already got it working, but I had pretty much the identical problem. I fixed it by using specifically the commit of libxsmm mentioned in the install guide, see my post here.

Hope it works!