Ask Your Question
1

Batch file and Sage

asked 2019-09-20 22:25:00 +0100

Bark gravatar image

updated 2019-09-20 22:25:22 +0100

Hi,

I am using SLURM (https://slurm.schedmd.com/) to run a batch process on a cluster of computers. Here is the following .slrm file that I have:

#!/bin/bash
#SBATCH --time=1:59:00
#SBATCH --ntasks=1
#SBATCH --mem=3820
#SBATCH -O
#SBATCH --output=/data/scratch/kbari/slrmbt_%A_%a.out
#SBATCH --array=1-50

sage --nodotsage /data/scratch/kbari/slurmbatchtest.py $SLURM_ARRAY_TASK_ID

I get an error that: "Error: HOME directory '/u/grad/kbari' does not exist. Error setting environment variables by sourcing '/usr/local/SageMath/src/bin/sage-env'; possibly contact sage-devel (see http://groups.google.com/group/sage-d...

I understand the error to be that it is trying to access sage from a different directory, which it does not have access to and cannot find as a result. So how can I change the environment variable to just tell it to run Sage not from that directory?

Thanks for your time!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-09-21 00:19:46 +0100

Emmanuel Charpentier gravatar image

Thant's a question for SLURM users; Sage has nothing to do with it, as far as I understand...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-09-20 22:25:00 +0100

Seen: 453 times

Last updated: Sep 21 '19