Skip to content

Instantly share code, notes, and snippets.

@ohofmann
Created April 17, 2015 11:51
Show Gist options
  • Select an option

  • Save ohofmann/a905aaf35bad35c2f99c to your computer and use it in GitHub Desktop.

Select an option

Save ohofmann/a905aaf35bad35c2f99c to your computer and use it in GitHub Desktop.
#!/bin/sh
#SBATCH -p defq
#SBATCH -J bcb-prep-e[1-6]
#SBATCH -o bcbio-ipengine.out.%%j
#SBATCH -e bcbio-ipengine.err.%%j
#SBATCH --cpus-per-task=5
#SBATCH --array=1-6
#SBATCH -t 05-00:00:00
#SBATCH --mem=5222
/cm/shared/apps/bcbio/20150103-devel/data/anaconda/bin/python -E -c 'import resource; cur_proc, max_proc = resource.getrlimit(resource.RLIMIT_NPROC); target_proc = min(max_proc, 10240) if max_proc > 0 else 10240; resource.setrlimit(resource.RLIMIT_NPROC, (max(cur_proc, target_proc), max_proc)); cur_hdls, max_hdls = resource.getrlimit(resource.RLIMIT_NOFILE); target_hdls = min(max_hdls, 10240) if max_hdls > 0 else 10240; resource.setrlimit(resource.RLIMIT_NOFILE, (max(cur_hdls, target_hdls), max_hdls)); from IPython.parallel.apps.ipengineapp import launch_new_instance; launch_new_instance()' --timeout=960 --IPEngineApp.wait_for_url_file=960 --EngineFactory.max_heartbeat_misses=120 --profile-dir="/scratch/ohofmann/brisbane/log/ipython" --cluster-id="47a4a4f0-7141-4dc8-ba62-6222baa6fed3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment