Skip to content

Commit

Permalink
Make ScaFaCoS code portable on x86_64 CI runners (#213)
Browse files Browse the repository at this point in the history
The `-mtune=native` compiler flag would trigger SIGILL when running a container on an AMD host machine when the image was generated on an Intel host machine.
  • Loading branch information
jngrad authored May 4, 2023
2 parents f6cf740 + ae6303e commit fbdf2f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/install-pfft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cd pfft-${pfft_version}
./bootstrap.sh
mkdir build
cd build
../configure --prefix=/usr/local --enable-portable-binary
../configure --prefix=/usr/local --enable-portable-binary --with-gcc-arch=x86_64
make -j $(nproc)
make install
cd
Expand Down
5 changes: 3 additions & 2 deletions docker/install-scafacos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ mkdir build
cd build
../configure --enable-shared \
--enable-portable-binary \
--with-gcc-arch=x86_64 \
--enable-fcs-dipoles \
--enable-fcs-solvers=direct,p2nfft,p3m,ewald \
--disable-fcs-fortran \
--with-internal-fftw=yes \
--with-internal-pfft=yes \
--with-internal-fftw=no \
--with-internal-pfft=no \
--with-internal-pnfft=yes \
--prefix=/usr/local
make -j $(nproc)
Expand Down

0 comments on commit fbdf2f2

Please sign in to comment.