|
|
|
```c
|
|
|
|
module swap PrgEnv-cray PrgEnv-intel
|
|
|
|
module load cray-hdf5
|
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
# Tells the autotools to generate a fat binary which can be run on the KNL and login nodes
|
|
|
|
./configure CC=cc CFLAGS="-xSSE4.2 -axAVX,MIC-AVX512" --with-hdf5=cc --disable-mpi
|
|
|
|
|
|
|
|
# We then need to edit the config.h file and enable AVX-512 instructions by defining the macro
|
|
|
|
#define HAVE_AVX512_F 1
|
|
|
|
|
|
|
|
# We also need to modify each Makefile to remove -xSSE4.2 -axAVX -axMIC-AVX512 and replace them with just -xMIC-AVX512
|
|
|
|
|
|
|
|
make clean; make -j 6
|
|
|
|
``` |
|
|
|
\ No newline at end of file |