From 42145515b10260a07aca26b5a367da641028c158 Mon Sep 17 00:00:00 2001 From: aaronkho Date: Fri, 25 Oct 2024 13:53:40 -0400 Subject: [PATCH] Added environment and exec files for pixi --- platform/env/env.PIXI | 2 ++ platform/exec/exec.PIXI | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 platform/env/env.PIXI create mode 100755 platform/exec/exec.PIXI diff --git a/platform/env/env.PIXI b/platform/env/env.PIXI new file mode 100644 index 000000000..a424ba80b --- /dev/null +++ b/platform/env/env.PIXI @@ -0,0 +1,2 @@ +# The PIXI platform assumes that you have installed pixi and run the +# appropriate commands to have the virtual environment set up well. diff --git a/platform/exec/exec.PIXI b/platform/exec/exec.PIXI new file mode 100755 index 000000000..d0010ad46 --- /dev/null +++ b/platform/exec/exec.PIXI @@ -0,0 +1,19 @@ +#!/bin/sh +# GACODE Parallel execution script (PIXI) +# +# NOTES: +# Used mpich2-1.0.1, so use mpirun rather than mpiexec + +simdir=${1} +nmpi=${2} +exec=${3} +nomp=${4} +numa=${5} +mpinuma=${6} + +echo $simdir + +cd $simdir + +mpirun -env OMP_NUM_THREADS $nomp -np $nmpi $exec +