From d7ecf8ea7ed44f7dbe26f4b0f6e175f51c107679 Mon Sep 17 00:00:00 2001 From: cfmin <1163105507@qq.com> Date: Fri, 13 Jun 2025 16:48:39 +0800 Subject: [PATCH] Add templates app xla --- .../xla.arm.cpu.bisheng.hmpi.config | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 templates/xla/test_760662910/xla.arm.cpu.bisheng.hmpi.config diff --git a/templates/xla/test_760662910/xla.arm.cpu.bisheng.hmpi.config b/templates/xla/test_760662910/xla.arm.cpu.bisheng.hmpi.config new file mode 100755 index 0000000..e525436 --- /dev/null +++ b/templates/xla/test_760662910/xla.arm.cpu.bisheng.hmpi.config @@ -0,0 +1,55 @@ +[SERVER] +11.11.11.11 + +[DOWNLOAD] +xla/test_760662910 ${JARVIS_PROXY}/openxla/xla/archive/refs/heads/test_760662910.zip xla-test_760662910.zip +bazel/7.4.1 ${JARVIS_PROXY}/bazelbuild/bazel/releases/download/7.4.1/bazel-7.4.1-linux-arm64 bazel + +[DEPENDENCY] +set -e +module purge +./jarvis -install hpckit/2025.3.30 any +module use ./software/utils/hpckit/2025.3.30/HPCKit/latest/modulefiles +module load bisheng/compiler4.2.0/bishengmodule +module load bisheng/hmpi25.0.0/hmpi +export CC=mpicc CXX=mpicxx FC=mpifort F77=mpif77 F90=mpif90 +./jarvis -install python3/3.9.9 bisheng+mpi +module use ./software/moduledeps/bisheng4.2.0-hmpi25.0.0 +module load python3/3.9.9 + +mkdir ${JARVIS_ROOT}/software/app +unzip ${JARVIS_DOWNLOAD}/xla-test_760662910.zip -d ${JARVIS_ROOT}/software/app +cd ${JARVIS_ROOT}/software/app +mv xla-test_760662910/ xla/ +cp -ar ${JARVIS_DOWNLOAD}/bazel ${JARVIS_ROOT}/software/app/xla +chmod 775 ${JARVIS_ROOT}/software/app/xla/bazel + +[ENV] +module purge +module use ./software/utils/hpckit/2025.3.30/HPCKit/latest/modulefiles +module load bisheng/compiler4.2.0/bishengmodule +module load bisheng/hmpi25.0.0/hmpi +export CC=mpicc CXX=mpicxx FC=mpifort F77=mpif77 F90=mpif90 +module use ./software/moduledeps/bisheng4.2.0-hmpi25.0.0 +module load python3/3.9.9 + +[APP] +app_name = xla +build_dir = ${JARVIS_ROOT}/software/app/xla +binary_dir = +case_dir = + +[BUILD] +#Please set the actual PYTHON version used, Recommended 3.11 +sed -i 's/3\.11/3\.9/g' WORKSPACE +./configure.py --backend=cpu --os=linux --host_compiler=clang --python_bin_path=$(which python3) +export HERMETIC_PYTHON_VERSION=3.9 +./bazel build --test_output=all --spawn_strategy=standalone //xla/... + +[CLEAN] +rm -rf xla/ + +[RUN] +run = +binary = +nodes = 1 -- Gitee