ESMCI / ccs_config_cesm

CESM CIME Case Control System configuration files
3 stars 46 forks source link

Intel compiler AVX2 option for PUMAS_MG_OBJS is causing issues on old Pleiades processors #7

Open fvitt opened 2 years ago

fvitt commented 2 years ago

The -xCORE-AVX2 intel compiler option in Depends.intel for the PUMAS_MG_OBJS source files is causing issues for the sandy bridge and ivy bridge processors on pleiades. The intel AVX instructions settings in the cmake_macros/intel_*.cmake files should be sufficient. Is there a reason we should not remove the -xCORE-AVX2 setting from Depends.intel?

--- a/machines/Depends.intel
+++ b/machines/Depends.intel
@@ -46,6 +46,6 @@ ifeq ($(DEBUG),FALSE)
   $(SHR_RANDNUM_C_OBJS): %.o: %.c
          $(CC) -c $(INCLDIR) $(INCS) $(CFLAGS) -O3 -fp-model fast $<
   $(PUMAS_MG_OBJS): %.o: %.F90
-         $(FC) -c $(INCLDIR) $(INCS) $(FFLAGS) $(FREEFLAGS) -O3 -xCORE-AVX2 -no-fma -ftz -no-prec-sqrt -qoverride-limits -no-inline-max-total-size -inline-factor=200 -qopt-report=5 $<
+         $(FC) -c $(INCLDIR) $(INCS) $(FFLAGS) $(FREEFLAGS) -O3 -no-fma -ftz -no-prec-sqrt -qoverride-limits -no-inline-max-total-size -inline-factor=200 -qopt-report=5 $<