Goddard-Fortran-Ecosystem / pFUnit

Parallel Fortran Unit Testing Framework
Other
172 stars 45 forks source link

support Intel ifx compiler (IntelLLVM) #336

Open bd4 opened 2 years ago

bd4 commented 2 years ago

The CMAKE_Fortran_COMPILER_ID for ifx is IntelLLVM instead of Intel. To get pFUnit to build, I just copied cmake/Intel.cmake to cmake/IntelLLVM.cmake and it works.

bd4 commented 2 years ago

The pFUnit_demos unfortunately do not run with ifx - I get the following error even for the Trivial set:

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
my_tests           0000000000428E3A  for__signal_handl     Unknown  Unknown
libpthread-2.31.s  00007F40FB4E83C0  Unknown               Unknown  Unknown
my_tests           00000000004C546C  __intel_avx_rep_m     Unknown  Unknown
libfunit.so        00007F40FC31D40B  pf_testsuite_mp_c     Unknown  Unknown
libfunit.so        00007F40FC8043DC  funit_mp_generic_     Unknown  Unknown
libfunit.so        00007F40FC8014DC  funit_mp_run_         Unknown  Unknown
libfunit.so        00007F40FC806CDA  funit_main_           Unknown  Unknown
my_tests           0000000000415B62  Unknown               Unknown  Unknown
libc-2.31.so       00007F40FB3080B3  __libc_start_main     Unknown  Unknown
my_tests           0000000000415A6E  Unknown               Unknown  Unknown
bd4 commented 2 years ago

This may very well be a bug in ifx, but seems useful to document progress here in case anyone else is using pFUnit with ifx.