Using Julia on Cluster

I am new to HPC. I am trying to run Julia on a cluster that uses slurm, but there’s no julia module pre-installed in it. Although I have installed Julia in my directory, I don’t know how to write the sbatch file that calls julia from my directory and then runs the .jl file. Anyone have any idea how to do it?

See e.g.

What’s unclear to you? Something like the following should do it.

#SBATCH -t 1:00:00
#SBATCH -n 1
#SBATCH -J "my julia computation"
#SBATCH -p normal
#SBATCH -A myaccount

export PATH=/path/to/my/custom/julia/:$PATH
srun julia myscript.jl

Of course, you likely need not change the sbatch parameters, like the partition and account name.