Hi,
I am using SLURM (https://slurm.schedmd.com/) to run a batch process on a network. 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-devel)."
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!