Skip to content

Instantly share code, notes, and snippets.

View hmoral's full-sized avatar

Hernan E. Morales hmoral

  • University of Copenhagen
  • Copenhagen, Denmark
View GitHub Profile
@hmoral
hmoral / Array_jobs_albiorix.md
Last active November 23, 2016 13:46
Small tutorial for submitting array jobs to albiroix

Problem: launch multiple jobs at the same time

Sometimes you have to submitt multiple iterations of the same task with concises difference between paramters for each iterations, e.g. MCMC chains. Some sort of parallelization that does not really put results together once is finsihed...

Non-ideal solution

  1. You could write a shell script which will sequentially launch each job, but you would have to write a SGE script for each job and each iterations will have to wait for the previous one to finsih

  2. You could qsub each iteration one by one but it will require a lot of typing and still you would have to write a SGE script for each job

Good alternative: make an array

With an array you need a single SGE script and the cluster will launch all the jobs at the same time, queuing the ones that do not fit and automatically launching them as soon as there is a chance

@hmoral
hmoral / 0_reuse_code.js
Created November 23, 2016 11:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console