From 4a30cf2f15d807bcaf6652742d91a78fcdd73da5 Mon Sep 17 00:00:00 2001 From: Kacper Kafara Date: Fri, 27 Oct 2023 11:36:03 +0200 Subject: [PATCH] feat: working setup for ares (#452) - Add script for building jssp binary on Ares - Add minimal logging to building script - Add sbatch configuration ## Description ## Linked issues ## Important implementation details --- scripts/build-jssp-on-ares.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 scripts/build-jssp-on-ares.sh diff --git a/scripts/build-jssp-on-ares.sh b/scripts/build-jssp-on-ares.sh new file mode 100755 index 0000000..0dc4523 --- /dev/null +++ b/scripts/build-jssp-on-ares.sh @@ -0,0 +1,22 @@ +#!/usr/bin/bash +#SBATCH --nodes=1 +#SBATCH --ntasks=1 +#SBATCH --partition=plgrid +#SBATCH --time=00:10:00 +#SBATCH --account=plglscclass23-cpu + +# $1: module name +function load_module_if_needed() { + module_name=$1 + echo "Adding module ${module_name}" + if [[ $(module is-loaded ${module_name}) -ne 0 ]]; then + module add ${module_name} + fi +} + +echo "Building jssp [release]" +load_module_if_needed rust/1.65.0-gcccore-12.2.0 +cargo build --example jssp --release +mkdir -p bin +mv target/release/examples/jssp bin/ +