Skip to content

Commit be292d0

Browse files
committed
Added carm_bench script for eb execution
1 parent d0ac387 commit be292d0

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ __pycache__/
33
.clang-format
44
*.pyc
55
*.pyo
6-
bin/
6+
bin/test
77
carm_results
88
cache
99
Bench/Bench

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ job-run-python-karolina:
1616
SCHEDULER_PARAMETERS: '-A OPEN-30-41 -p qcpu_exp -N 1 --ntasks-per-node=1'
1717
tags:
1818
- it4i
19-
- Barbora
19+
- barbora
2020
- slurmjob
2121
script:
2222
- set -e

bin/carm_bench

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
#Check if 'python' exists; if not, use 'python3'
4+
python_cmd=$(command -v python || command -v python3)
5+
6+
if [ -z "$python_cmd" ]; then
7+
echo "Error: Python (or Python3) is not installed."
8+
exit 1
9+
fi
10+
11+
#Get the absolute path of the script directory
12+
script_dir="$(cd "$(dirname "$0")" && pwd)"
13+
14+
#Run the Python script with the chosen Python interpreter
15+
$python_cmd "$script_dir/../run.py" "$@"

0 commit comments

Comments
 (0)