You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running make.prerun.object() from the instructions on Chapter 8 of the Light-level geolocation analyses manual on a single node job on a Linux HPC cluster running SLURM fails with:
print(Sys.time())
url<-"https://github.com/slisovski/TheGeolocationManual/raw/master/download.zip"temp<- tempfile()
download.file(url, temp)
unzip(temp, exdir="data")
library(GeoLocTools)
setupGeolocation()
ID<-"M034"wd<-"data"Species<-"LanCol"lon.calib<-12.33lat.calib<-55.98
message("reading file")
raw<- readMTlux(paste0(wd, "/RawData/", Species, "/", ID, ".lux"))
names(raw) <- c("Date", "Light")
raw$Light<- log(raw$Light+0.0001) + abs(min(log(raw$Light+0.0001)))
head(raw)
offset<-12# adjusts the y-axis to put night (dark shades) in the middle### Looking at the raw data
message("Looking at the raw data")
lightImage( tagdata=raw,
offset=offset,
zlim= c(0, 10))
### Getting the twilight annotation
message("Getting the twilight annotation")
FLightR.data<-get.tags.data(paste0(wd, "/Results/", Species, "/", ID, "_twl.csv"))
#### Calibration ####
message("Calibration")
Calibration.periods<-data.frame(
calibration.start=as.POSIXct(c(NA, '2015-05-15')),
calibration.stop=as.POSIXct(c('2014-07-15', NA)),
lon=lon.calib, lat=lat.calib)
# use c() also for the geographic coordinates,# if you have more than one calibration location# (e. g., lon=c(5.43, 6.00), lat=c(52.93,52.94))
print(Calibration.periods)
Calibration<-make.calibration(FLightR.data, Calibration.periods, model.ageing=TRUE, plot.final=T)
#### Spatial extent ####
message("Spatial extent")
Grid<- make.grid(left=5, bottom=-33, right=50, top=60,
distance.from.land.allowed.to.use=c(-Inf, 200),
distance.from.land.allowed.to.stay=c(-Inf, 50))
#### Preparing model run ##### ~ 15 min run timecpu<- as.numeric(Sys.getenv("SLURM_CPUS_ON_NODE", 1))
message("cpus: ", cpu)
all.in<- make.prerun.object(FLightR.data, Grid, start=c(lon.calib, lat.calib),
Calibration=Calibration, M.mean=750, threads=cpu)
On a compute node with two AMD 7763 (hence 128 cores total).
The text was updated successfully, but these errors were encountered:
Neves-P
changed the title
make.prerun.object() cluster initialization issuemake.prerun.object() cluster initialization issue on SLURM cluster
Jun 4, 2024
make.prerun.object()
cluster initialization issueRunning
make.prerun.object()
from the instructions on Chapter 8 of the Light-level geolocation analyses manual on a single node job on a Linux HPC cluster running SLURM fails with:Cause
This happens because
parallel::makeCluster()
is called viamycl <- parallel::makeCluster(threads)
and the clustertype
is left as default"PSOCK"
.The workaround to this is to allow a user to choose a cluster
type
and to initialize it correctly:Reprex and session info
Running a SLURM job with settings:
With
myscript.R
:On a compute node with two AMD 7763 (hence 128 cores total).
The text was updated successfully, but these errors were encountered: