Ask Your Question

Batch file and Sage

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

Bark gravatar image

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


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

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

sage --nodotsage /data/scratch/kbari/ $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

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

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

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


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

Seen: 391 times

Last updated: Sep 21 '19