Skip to content

Commit 4cd3df0

Browse files
committed
build: enable AOT compilation for Intel GPU, add mem=32G for ocloc link step
ocloc runs at link time and requires significantly more than SLURM's 1G default. 32G is sufficient; nodes have 500G available. Also bumped time limit to 90min for the longer ocloc pass.
1 parent 9e01d89 commit 4cd3df0

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

build_intel_gpu.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
#SBATCH -p pvc
3+
#SBATCH -N 1
4+
#SBATCH --gres=gpu:pvc:1
5+
#SBATCH -t 1:30:00
6+
#SBATCH --mem=32G
7+
#SBATCH -o /scratch/user/u.sb27915/MFC-intel/build_intel_gpu.log
8+
#SBATCH -e /scratch/user/u.sb27915/MFC-intel/build_intel_gpu.log
9+
#SBATCH -J mfc-intel-gpu-build
10+
11+
source /etc/profile
12+
module load iimpi/2025a imkl/2025.1.0 CMake/3.31.3 Python/3.13.1
13+
export I_MPI_F90=ifx FC=mpif90
14+
export UV_CACHE_DIR=/scratch/user/u.sb27915/.cache/uv
15+
export RUSTUP_HOME=/scratch/user/u.sb27915/.rustup
16+
export CARGO_HOME=/scratch/user/u.sb27915/.cargo
17+
export PATH=$CARGO_HOME/bin:$PATH
18+
19+
cd /scratch/user/u.sb27915/MFC-intel
20+
./mfc.sh build -t simulation --gpu mp --intel-aot -j 8

0 commit comments

Comments
 (0)