-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtasks.wdl
66 lines (58 loc) · 1.37 KB
/
tasks.wdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version 1.0
task step1{
meta {
description: "Test Bandwidth And Resource Schedule"
}
input {
String DOCKER = "ubuntu:18.04"
File BigFile
File SmallFile
Int NUM_THREAD = 5
String MEMORY = "10 GB"
String DISK = "250 GB"
String SLEEP = "10m"
}
command {
mkdir -p input
dd if=/dev/zero of=/input/res.txt bs=1K count=1024000;
for i in `seq 1 $(cat /proc/cpuinfo | grep "physical id" | wc -l)`; do dd if=/dev/zero of=/dev/null & done;
sleep ${SLEEP};
}
runtime {
docker: "${DOCKER}"
cpu: "${NUM_THREAD}"
memory: "${MEMORY}"
disk: "${DISK}"
}
output {
# get all the output as array
Array[File] output_step1 = glob("*")
}
}
task step2{
meta {
description: "Test IO"
}
input {
String DOCKER = "ubuntu:18.04"
Array[File] step1_output
Int NUM_THREAD = 5
String MEMORY = "10 GB"
String DISK = "250 GB"
String SLEEP = "10m"
}
command {
ls ${sep = ' ' step1_output} > output.txt
sleep ${SLEEP};
}
runtime {
docker: "${DOCKER}"
cpu: "${NUM_THREAD}"
memory: "${MEMORY}"
disk: "${DISK}"
}
output {
# get all the output as array
Array[File] output_step2 = glob("*")
}
}