Skip to content

Commit 790f535

Browse files
committed
Add Phoenix IFX modules+template and fix Intel specific my_inquire for EL input files
1 parent dd9165a commit 790f535

3 files changed

Lines changed: 68 additions & 1 deletion

File tree

src/common/m_compile_specific.f90

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ impure subroutine my_inquire(fileloc, dircheck)
6161
logical, intent(inout) :: dircheck
6262

6363
#ifdef __INTEL_COMPILER
64-
inquire (DIRECTORY=trim(fileloc), EXIST=dircheck) ! Intel
64+
block
65+
logical :: file_exist, dir_exist
66+
inquire (FILE=trim(fileloc), EXIST=file_exist)
67+
inquire (DIRECTORY=trim(fileloc), EXIST=dir_exist)
68+
dircheck = file_exist .or. dir_exist
69+
end block
6570
#else
6671
inquire (FILE=trim(fileloc), EXIST=dircheck) ! GCC
6772
#endif

toolchain/modules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ p-gpu python/3.12.5 nvhpc/24.5 hpcx/2.19-cuda cuda/12.1.1
4141
p-gpu MFC_CUDA_CC=70,75,80,89,90 NVHPC_CUDA_HOME=$CUDA_HOME CC=nvc CXX=nvc++ FC=nvfortran
4242
p-gpu-unload xalt
4343

44+
pifx GT Phoenix (IFX)
45+
pifx-all
46+
pifx-cpu intel-oneapi-compilers/2024.2.1 intel-oneapi-mpi/2021.9.0 intel-oneapi-mkl/2023.1.0
47+
pifx-cpu CC=icx CXX=icpx FC=ifx
48+
pifx-cpu MPICC=mpiicc MPICXX=mpiicpc MPIFC=mpiifort
49+
pifx-cpu I_MPI_CC=icx I_MPI_CXX=icpx I_MPI_F90=ifx I_MPI_F77=ifx
50+
4451
f OLCF Frontier
4552
f-all cpe/25.03 rocm/6.3.1
4653
f-all cray-fftw cray-hdf5 python cmake
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/usr/bin/env bash
2+
3+
<%namespace name="helpers" file="helpers.mako"/>
4+
5+
% if engine == 'batch':
6+
#SBATCH --nodes=${nodes}
7+
#SBATCH --ntasks-per-node=${tasks_per_node}
8+
#SBATCH --job-name="${name}"
9+
#SBATCH --output="${name}.out"
10+
#SBATCH --time=${walltime}
11+
% if account:
12+
#SBATCH --account=${account}
13+
% endif
14+
% if partition:
15+
#SBATCH --partition=${partition}
16+
% endif
17+
% if quality_of_service:
18+
#SBATCH --qos=${quality_of_service}
19+
% endif
20+
% if gpu_enabled:
21+
#SBATCH --gres=gpu:V100:${tasks_per_node}
22+
#SBATCH --mem-per-gpu=16G
23+
% endif
24+
% if email:
25+
#SBATCH --mail-user=${email}
26+
#SBATCH --mail-type="BEGIN, END, FAIL"
27+
% endif
28+
% endif
29+
30+
${helpers.template_prologue()}
31+
32+
ok ":) Loading modules:\n"
33+
cd "${MFC_ROOT_DIR}"
34+
. ./mfc.sh load -c pifx -m ${'g' if gpu_enabled else 'c'}
35+
cd - > /dev/null
36+
echo
37+
38+
% for target in targets:
39+
${helpers.run_prologue(target)}
40+
41+
% if not mpi:
42+
(set -x; ${profiler} "${target.get_install_binpath(case)}")
43+
% else:
44+
(set -x; ${profiler} \
45+
mpirun -np ${nodes*tasks_per_node} \
46+
--bind-to none \
47+
"${target.get_install_binpath(case)}")
48+
% endif
49+
50+
${helpers.run_epilogue(target)}
51+
52+
echo
53+
% endfor
54+
55+
${helpers.template_epilogue()}

0 commit comments

Comments
 (0)