lalframe compilation fails with amd optimization flags
Hi,
I'm trying to build an optimized lalsuite
/gstlal
runtime container for benchmarking a AMD EPYC machine at caltech. For reference I'm using a SL7 lalsuite-dev
container with gcc9. I installed AMD's AOCL libraries and am compiling according to the best practices in this document: https://prace-ri.eu/wp-content/uploads/Best-Practice-Guide_AMD.pdf
CFLAGS
=CXXFLAGS
= '-O3 -march=znver2 -mtune=znver2 -mfma -mavx2 -m3dnow -fomit-frame-pointer'
LDFLAGS
= ' -L${AMDDIR}/lib -lblis -lalm'
My issue is compiling/linking lalframe
, which fails consistently with at the linking stage here: https://git.ligo.org/alexander.pace/gstlal-dev/-/jobs/1498759
Basically I traced the error down to every executable compiled in lalframe/bin
immediately throwing up a Segmentation fault. Here is an example from my rpmbuild directory in the container:
[root@53512999e2fd lalframe]# lal_version
LAL: 7.1.3.1 (UNCLEAN 8812a363794051d581f93668cc684502fb9d50d0)
[root@53512999e2fd lalframe]# /root/rpmbuild/BUILD/lalframe-1.5.5.1/bin/lalframe_version
Segmentation fault
[root@53512999e2fd lalframe]# /root/rpmbuild/BUILD/lalframe-1.5.5.1/bin/lalfr-dump --version
Segmentation fault
[root@53512999e2fd lalframe]# /root/rpmbuild/BUILD/lalframe-1.5.5.1/bin/lalfr-dump --help
Segmentation fault
[root@53512999e2fd lalframe]# /root/rpmbuild/BUILD/lalframe-1.5.5.1/bin/lalfr-print --help
Segmentation fault
etc. I don't know if it's related but Segmentation Faults and the offending directory were mentioned in this ticket: #415 (closed)
Thanks, Alex