Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CPUS_PER_TASK and a jupyterlab.sbatch #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions sbatches/sherlock/jupyterlab.sbatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

PORT=$1
NOTEBOOK_DIR=$2
cd $NOTEBOOK_DIR

module load python/3.6.1
module load nodejs/9.5.0
jupyter lab --no-browser --port=$PORT
4 changes: 3 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ MEM=20G

TIME=8:00:00

CPUS_PER_TASK=1

for var in FORWARD_USERNAME PORT PARTITION RESOURCE MEM TIME CPUS_PER_TASK CONTAINERSHARE MACHINEPREFIX DOMAINNAME USE_LSOF ISOLATEDCOMPUTENODE CONNECTION_WAIT_SECONDS

for var in FORWARD_USERNAME PORT PARTITION RESOURCE MEM TIME CONTAINERSHARE MACHINEPREFIX DOMAINNAME USE_LSOF ISOLATEDCOMPUTENODE CONNECTION_WAIT_SECONDS
do
echo "$var="'"'"$(eval echo '$'"$var")"'"'
done >> params.sh
1 change: 1 addition & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ command="sbatch
--error=$RESOURCE_HOME/forward-util/$SBATCH_NAME.err
--mem=$MEM
--time=$TIME
--cpus-per-task=$CPUS_PER_TASK
$RESOURCE_HOME/forward-util/$SBATCH_NAME $PORT \"${@:2}\""

echo ${command}
Expand Down