Code Monkey home page Code Monkey logo

Comments (3)

weshinsley avatar weshinsley commented on August 20, 2024

(3) - Checked, it indeed works. Here is a hideous example.

Consider this R code in Q:\clusternet\sleep_test.R

args <- commandArgs(trailingOnly = TRUE)
sleep_time <- as.numeric(args[1])
Sys.sleep(sleep_time)
df <- data.frame(time=sleep_time)
write.csv(df, file=paste0("P:/output", sleep_time, ".csv"))

Each job is run with this batch, Q:\clusternet\run.bat

net use P: \\fi--san03.dide.ic.ac.uk\homes\wrh1\clusternet /y
call setr64_3_5_1
P:
Rscript sleep_test.R %1
set Err=%ErrorLevel%
%SystemDrive%
net use P: /delete /y
set ErrorLevel=%Err%

and the lot are launched with:

set SUB=job submit /scheduler:fi--didemrchnb /numcores:1 /jobtemplate:GeneralNodes /requestednodes:fi--didemrc09 \\fi--san03.dide.ic.ac.uk\homes\wrh1\clusternet\run.bat
%SUB% 100
%SUB% 50
%SUB% 20
%SUB% 10
%SUB% 5
%SUB% 3
%SUB% 2
%SUB% 1

These are run on an empty node and all run concurrently; all csv files are correctly written, so the 1-second file closing the connection does not disrupt the progress of the 100-second run.

Not sure quite why the '/y' is necessary on the /delete line - %SystemDrive% moves us into C: (or wherever Windows lives), so it must be some sort of network file caching lag...

Also tested that this removes the entry from the server end - and it does! (whereas without the net use /delete, it doesn't, and the zombie connections persist on the server)

from didehpc.

weshinsley avatar weshinsley commented on August 20, 2024

(2) is correctly handled and tested, by remembering the ERRORLEVEL before, and restoring it afterwards.

and (1) seem to work nicely, confirmed on server.

from didehpc.

weshinsley avatar weshinsley commented on August 20, 2024

#66

from didehpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.