Installing ACCESS-OM2 on NeSI (New Zealand supercomputer)

Ok… so I couldn’t figure out how to fix my deprecated build that was crashing at the end of CICE5.

I did however go back and try again with the spack installation based on Harshula’s instructions:

And I got it to run successfully with no error! I think I must have stuffed up the mpirun call earlier, and the PMI and SLURM issues are resolved by calling the correct path for mpirun. So, I may have just run around in a giant circle with my alternative build, but never mind.

So, thank you to @harshula for providing this build recipe. In the end spack wins.

I did however use a bunch of spack develop steps to download the code packages and edit the AVX2 vectorization flags. My spack.yaml is attached:

spack.yaml (1.9 KB)

In each of my “develop” packages, I just did a recursive grep for -xCORE-AVX2 or -axCORE-AVX2 and then updated that flag to -mavx2 to avoid the Intel / AMD problem. Mostly was updating CMakeLists.txt.

Strangely, some of my edits (e.g. in the CICE5 build) got ignored, and the -axCORE-AVX2 persisted in the build. This didn’t seem to matter (I don’t know why). It did matter for the MOM5 build, and my edits to CMakeLists.txt did change the compilation to avoid the -xCORE-AVX2 flag.

Regards,
David

3 Likes