Coder Social home page Coder Social logo

BatchJobs config file about biocparallel HOT 4 CLOSED

vobencha avatar vobencha commented on August 20, 2024
BatchJobs config file

from biocparallel.

Comments (4)

DarwinAwardWinner avatar DarwinAwardWinner commented on August 20, 2024

BatchJobsParam is mustly just telling BiocParallel to use the BatchJobs configuration, which is specified in the config file. I believe bpworkers doesn't return anything meaningful for BatchJobsParam because in the "normal" use case of submitting jobs to a cluster across multiple machines and shared by multiple users, BatchJobs doesn't control the level of parallelism, the cluster's job scheduler does.

from biocparallel.

mllg avatar mllg commented on August 20, 2024

Hi,

Both of you are right, the bpworkers setting has no purpose for BatchJobs. I'm unsure about consistency, I guess I would propose NA_integer_ as return value.

Was it intended that the user would set most parameters through the config file and not the BatchJobsParam() constructor interface?

Actually, no. We opted for configuration files to allow sysadmins to set global, system-wide options. You can always overrule these settings in your own config file or from R via setConfig(). Furthermore, configuration settings depend primarily on the system, and not on the user -- therefore, to keep the R scripts portable, configuration options should not be set in script files of the user. Ideally you should not have to touch most options once you've figured out a working configuration for your system.

Maybe we were careless in the past and some conf options should have been function arguments. These can still be exposed as arguments in BiocParallel. Do you have some specific options in mind?

from biocparallel.

vobencha avatar vobencha commented on August 20, 2024

Hi,

In general I was hoping to lower the overhead involved in setting up the config and template files. Thinking of the less-experienced user, it would be great if they could do this completely within R.

BatchJobsParam fields:
  • I'll modify the show method for BatchJobsParam so 'workers' isn't shown (and not documented).
  • getConfig() is not mentioned on ?BatchJobsParam so I think it's difficult to know what config options are available. I'm not sure if the best approach is to (a) expose all of these as args or (b) document that they can be set with setConfig() or passed to BatchJobsParam() in the '...'. I'm leaning towards (b).
config and template files:

Interactive, Local and Multicore only need config file info (not template) so we're set for these.

I believe LSF, SLURM, Torque, SGE and SSH need both a template and config. Template files aren't included in BatchJobs and must be downloaded from github. For these cluster types the 'cluster.functions' arg only gets us part way there. To enable a complete R approach maybe we need a function that generates cluster-specific template files? Does something like this exist?

from biocparallel.

vobencha avatar vobencha commented on August 20, 2024

Closing this issue.

from biocparallel.

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.