Julia on Slurm Cluster


I am trying to run Julia on SlurmCluster,
my data is in my current directory on the Cluster.

the julia code Id like to run (main.jl)

using DelimitedFiles
mme = readdlm(“mme.txt”)
rhs = readdlm(“rhs.txt”)
b = mme/rhs
writedlm(“b.txt”, b)

The Job script I submitted

#SBATCH --ntasks=1 # 1 core(CPU)
#SBATCH --nodes=1 # Use 1 node
#SBATCH --job-name=wubujob # sensible name for the job
#SBATCH --mem=30G # Default memory per CPU is 3GB.
#SBATCH --partition=smallmem # Use the verysmallmem-partition for jobs requiring < 10 GB RAM.
#SBATCH --mail-user=mailname@nmbu.no # Email me when job is done.
#SBATCH --mail-type=ALL
julia main.jl

after submitting the job script I got empty (slurm jobID .out) file.
I am wondering why I got empty (slurm jobID.out) file?
is there anything that I did wrong?

many thanks in advance

what happens if you replace julia main.jl with something else, like dummy workload:

touch b.txt

It doesn’t seem to be a Julia specific problem at the moment

still got empty (slurm jobID.out) file.

so this doesn’t have anything to do with Julia?


Does it run though? As in, does b.txt now exist and have the expected result inside of it?

You aren’t explicitly printing anything, so I’m not sure I’d expect the slurm outfile to have anything in it.

it returned an empty file, where should I write println ?