Skip to content

Commit 88f2dcd

Browse files
committed
Centaur tests
1 parent c7f05a4 commit 88f2dcd

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: gpu_required_and_requested
2+
testFormat: workflowsuccess
3+
backends: [GCPBATCH, AWSBATCH]
4+
5+
files {
6+
workflow: wdl/gpu_required_and_requested.wdl
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: gpu_required_not_requested
2+
testFormat: workflowfailure
3+
4+
files {
5+
workflow: wdl/gpu_required_not_requested.wdl
6+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version development-1.1
2+
3+
task gpuTask {
4+
command {
5+
echo "I should have a GPU :)"
6+
}
7+
output {
8+
String msg = read_string(stdout())
9+
}
10+
runtime {
11+
docker: "ubuntu:latest"
12+
gpu: true
13+
gpuCount: 1
14+
}
15+
}
16+
17+
workflow wf_gpu_required_and_requested {
18+
call gpuTask
19+
output {
20+
String out = gpuTask.msg
21+
}
22+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version development-1.1
2+
3+
task gpuTask {
4+
command {
5+
echo "No GPU :("
6+
}
7+
output {
8+
String msg = read_string(stdout())
9+
}
10+
runtime {
11+
docker: "ubuntu:latest"
12+
gpu: true
13+
}
14+
}
15+
16+
workflow wf_gpu_required_not_requested {
17+
call gpuTask
18+
output {
19+
String out = gpuTask.msg
20+
}
21+
}

0 commit comments

Comments
 (0)