Skip to content

Commit 783a867

Browse files
Added computer Betzy to compile scripts (#1098)
1 parent 7e810b6 commit 783a867

4 files changed

Lines changed: 116 additions & 0 deletions

File tree

configuration/scripts/cice.batch.csh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,17 @@ cat >> ${jobfile} << EOFB
375375
#PBS -l walltime=${batchtime}
376376
EOFB
377377

378+
else if (${ICE_MACHINE} =~ betzy*) then
379+
cat >> ${jobfile} << EOFB
380+
#SBATCH -J CICE6
381+
#SBATCH --nodes ${nnodes}
382+
#SBATCH --ntasks ${ntasks}
383+
#SBATCH --qos=devel
384+
#SBATCH --cpus-per-task ${nthrds}
385+
#SBATCH --account=nn9481k
386+
#SBATCH --time=${batchtime}
387+
EOFB
388+
378389
else if (${ICE_MACHINE} =~ boreas* ) then
379390
cat >> ${jobfile} << EOFB
380391
#PBS -N ${ICE_CASENAME}

configuration/scripts/cice.launch.csh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ aprun -n ${ntasks} -N ${taskpernodelimit} -d ${nthrds} ./cice >&! \$ICE_RUNLOG_F
284284
EOFR
285285
endif
286286

287+
else if (${ICE_MACHCOMP} =~ betzy*) then
288+
cat >> ${jobfile} << EOFR
289+
srun -n ${ntasks} -c ${nthrds} ./cice >&! \$ICE_RUNLOG_FILE
290+
EOFR
287291

288292
#=======
289293
else if (${ICE_MACHCOMP} =~ gaea*) then
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#==============================================================================
2+
# Makefile macros for NRIS Betzy, intel compiler
3+
#==============================================================================
4+
5+
CPP := mpicc #/usr/bin/cpp
6+
CPP :=
7+
CPPDEFS := -DFORTRANUNDERSCORE ${ICE_CPPDEFS}
8+
CFLAGS := -c -O2 -fp-model precise -xHost
9+
10+
FIXEDFLAGS := -132
11+
FREEFLAGS := -FR
12+
FFLAGS := -fp-model precise -convert big_endian -assume byterecl -ftz -traceback -align array64byte -xHost
13+
FFLAGS_NOOPT:= -O0
14+
15+
ifeq ($(ICE_BLDDEBUG), true)
16+
#FFLAGS += -O0 -g -check uninit -check bounds -check pointers -fpe0 -check noarg_temp_created -link_mpi=dbg
17+
# check uninit triggers link failure on ursa
18+
FFLAGS += -O0 -g -check bounds -check pointers -fpe0 -check noarg_temp_created -link_mpi=dbg
19+
else
20+
#FFLAGS += -O2
21+
endif
22+
23+
SCC := icx
24+
SFC := ifx
25+
MPICC := mpiicx
26+
MPIFC := mpiifx
27+
# betzy
28+
SFC := ifx
29+
SCC := icx
30+
MPIFC := mpiifx
31+
MPICC := mpiicx
32+
33+
ifeq ($(ICE_COMMDIR), mpi)
34+
FC := $(MPIFC)
35+
CC := $(MPICC)
36+
else
37+
FC := ifx
38+
CC := cc
39+
endif
40+
LD:= $(FC)
41+
42+
#NETCDF_PATH := $(NETCDF)
43+
NETCDF_PATH := $(NETCDF_FORTRAN_ROOT)
44+
NETCDF_PATH := /cluster/software/netCDF-Fortran/4.6.2-iimpi-2025b/
45+
PIO_CONFIG_OPTS:= --enable-filesystem-hints=gpfs
46+
47+
#PNETCDF_PATH := $(PNETCDF)
48+
49+
INC_NETCDF := $(NETCDF_PATH)/include
50+
LIB_NETCDF := $(NETCDF_PATH)/lib
51+
52+
#LIB_PNETCDF := $(PNETCDF_PATH)/lib
53+
#LIB_MPI := $(IMPILIBDIR)
54+
55+
INCLDIR := $(INCLDIR) -I$(INC_NETCDF)
56+
#SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf -lgptl
57+
SLIBS := -L$(LIB_NETCDF)/lib -lnetcdff
58+
#SLIBS := -L$(LIB_NETCDF) -lnetcdff
59+
60+
ifeq ($(ICE_THREADED), true)
61+
LDFLAGS += -qopenmp
62+
CFLAGS += -qopenmp
63+
FFLAGS += -qopenmp
64+
endif
65+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/csh -f
2+
3+
set inp = "undefined"
4+
if ($#argv == 1) then
5+
set inp = $1
6+
endif
7+
8+
if ("$inp" != "-nomodules") then
9+
source /etc/csh.cshrc
10+
#source /etc/profile.d/modules.csh
11+
#module list
12+
which module
13+
# Initialize Lmod properly
14+
#alias module 'eval `/usr/bin/modulecmd csh \!*`'
15+
module purge
16+
module load intel/2025b
17+
module load netCDF-Fortran/4.6.2-iimpi-2025b
18+
endif
19+
20+
# May be needed for OpenMP memory
21+
setenv OMP_STACKSIZE 64M
22+
23+
setenv ICE_MACHINE_MACHNAME betzy
24+
setenv ICE_MACHINE_MACHINFO "AMD® Epyc™ 7742 2.25GHz"
25+
setenv ICE_MACHINE_ENVNAME intel
26+
setenv ICE_MACHINE_ENVINFO "icx/ifx 2025.1.1.20250418, intel-oneapi-mpi-2021.15.0, netcdf-c 4.9.2, netcdf-fortran 4.6.1"
27+
setenv ICE_MACHINE_MAKE make
28+
setenv ICE_MACHINE_WKDIR /cluster/projects/nn9481k/${USER}/CICE6/wrkdir/
29+
setenv ICE_MACHINE_INPUTDATA /cluster/projects/nn9481k/${USER}/CICE_DATA/
30+
setenv ICE_MACHINE_BASELINE /cluster/projects/nn9481k/${USER}/CICE6/baseline/
31+
setenv ICE_MACHINE_SUBMIT "sbatch"
32+
setenv ICE_MACHINE_TPNODE 128
33+
setenv ICE_MACHINE_ACCT unused
34+
setenv ICE_MACHINE_QUEUE "batch"
35+
setenv ICE_MACHINE_BLDTHRDS 1
36+
setenv ICE_MACHINE_QSTAT "squeue --jobs="

0 commit comments

Comments
 (0)