Comments (4)
the wdl:
version 1.0
workflow hello_hostname_2 {
call hostname2 {
}
output {
File stdout = hostname2.out
}
}
## Task Descriptions
task hostname2 {
command {
echo $(hostname)
}
runtime {
memory: 2000
cpu: 2
}
output {
File out = stdout()
}
}
from diy-cromwell-server.
the options.json:
{
"write_to_cache": true,
"read_from_cache": false
}
from diy-cromwell-server.
resulting script.submit:
#!/bin/bash
set -e
source /app/lmod/lmod/init/bash
module use /app/modules/all
module purge
if [ ! -z '' ]; then
# Ensure singularity is loaded if it's installed as a module
module load Singularity/3.5.3
# Build the Docker image into a singularity image
DOCKER_NAME=$(sed -e 's/[^A-Za-z0-9._-]/_/g' <<< )
# The image will live together with all the other images to force caching of the .sif files themselves - note, always use docker hub tags!!!
IMAGE=$SINGULARITYCACHEDIR/$DOCKER_NAME.sif
echo $DOCKER_NAME
echo $IMAGE
echo $SINGULARITYCACHEDIR
echo $SCRATCHPATH
if [ ! -f $IMAGE ]; then # If we already have the image, skip everything
singularity pull $IMAGE docker://
fi
# Submit the script to SLURM
sbatch \
--partition=campus-new \
-J cromwell_22741cd7_hostname2 \
-D /fh/scratch/delete90/malik_h/jayoung/cromwell-executions/hello_hostname_2/22741cd7-4edb-414e-925c-17f76da9ebe2/call-hostname2 \
-o /fh/scratch/delete90/malik_h/jayoung/cromwell-executions/hello_hostname_2/22741cd7-4edb-414e-925c-17f76da9ebe2/call-hostname2/execution/stdout \
-e /fh/scratch/delete90/malik_h/jayoung/cromwell-executions/hello_hostname_2/22741cd7-4edb-414e-925c-17f76da9ebe2/call-hostname2/execution/stderr \
--cpus-per-task=2 \
--wrap "singularity exec --bind $SCRATCHPATH $IMAGE /bin/bash /fh/scratch/delete90/malik_h/jayoung/cromwell-executions/hello_hostname_2/22741cd7-4edb-414e-925c-17f76da9ebe2/call-hostname2/execution/script"
else
module load
sbatch \
--partition=campus-new \
-J cromwell_22741cd7_hostname2 \
-D /fh/scratch/delete90/malik_h/jayoung/cromwell-executions/hello_hostname_2/22741cd7-4edb-414e-925c-17f76da9ebe2/call-hostname2 \
-o /fh/scratch/delete90/malik_h/jayoung/cromwell-executions/hello_hostname_2/22741cd7-4edb-414e-925c-17f76da9ebe2/call-hostname2/execution/stdout \
-e /fh/scratch/delete90/malik_h/jayoung/cromwell-executions/hello_hostname_2/22741cd7-4edb-414e-925c-17f76da9ebe2/call-hostname2/execution/stderr \
--cpus-per-task=2 \
--wrap "/bin/bash /fh/scratch/delete90/malik_h/jayoung/cromwell-executions/hello_hostname_2/22741cd7-4edb-414e-925c-17f76da9ebe2/call-hostname2/execution/script"
fi
from diy-cromwell-server.
never mind. Our slurm configuration doesn't pay attention to memory requests anyway - https://sciwiki.fredhutch.org/scicomputing/compute_jobs/#memory
from diy-cromwell-server.
Related Issues (13)
- Cromwell Version? HOT 1
- Glob + env modules= OK; Glob + containers= FAIL. HOT 1
- update to v52
- Server Time Zone Unrecognized HOT 1
- test workflows list no longer matches available test workflows
- 3 Ls
- localBatchFileScatter parse.inputs.json pointing to the wrong sample.batchfile.tsv file
- confusing comment line in variantCalling-workflow.wdl
- Scatter using Singularity fails creating SIF HOT 9
- Output and Error information pruned during Singularity exec HOT 1
- Separate cromwellParams from X.conf HOT 2
- Use included file for database connection parameters HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diy-cromwell-server.