Skip to content

Bad resolution of relative path in include statement #2

Closed
@matthiasbe

Description

@matthiasbe

Hi,

Very interesting code, thank you for sharing. I share this vision that the login node should not be using during the job.

I have an issue with inclusion of other julia files.

My main file main.jl start like this

#!/path/to/julia --project

using SlurmClusterManager

using Plots
using Distributed
using DelimitedFiles

addprocs(SlurmManager())

include("utility_functions.jl")
# Other code ...

I run this on the cluster governed by Slurm like this: sbatch -n 4 parallel.jl

And I get the following error in the output file slurm-7451.out

==========================================
SLURM_JOB_ID = 7451
SLURM_JOB_NODELIST = node023
==========================================
ERROR: LoadError: could not open file /var/spool/slurm/d/job07451/utility_functions.jl
Stacktrace:
 [1] include(::String) at ./client.jl:457
 [2] top-level scope at /var/spool/slurm/d/job07451/slurm_script:15
 [3] include(::Function, ::Module, ::String) at ./Base.jl:380
 [4] include(::Module, ::String) at ./Base.jl:368
 [5] exec_options(::Base.JLOptions) at ./client.jl:296
 [6] _start() at ./client.jl:506
in expression starting at /var/spool/slurm/d/job07451/slurm_script:15

Is it a slurm parameter I didn't set correctly maybe ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions