Skip to content

Commit

Permalink
feat: working setup for ares (#452)
Browse files Browse the repository at this point in the history
- Add script for building jssp binary on Ares
- Add minimal logging to building script
- Add sbatch configuration

<!-- If applicable - remember to add the PR to the EA Rust project (ONLY
IF THERE IS NO LINKED ISSUE) -->

## Description

<!-- Please describe the motivation & changes introduced by this PR -->

## Linked issues

<!-- Please use "Resolves #<issue_no> syntax in case this PR should be
linked to an issue -->

## Important implementation details

<!-- if any, optional section -->
  • Loading branch information
kkafar authored Oct 27, 2023
1 parent 546e01a commit 4a30cf2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/build-jssp-on-ares.sh
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 4a30cf2

Please sign in to comment.