Skip to content

Commit a5a3911

Browse files
author
Elliot Kim
committed
adds severless script to sh file
1 parent 929d09a commit a5a3911

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

test-vine-task-chaining.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ int main(int argc, char *argv[])
2323
printf("TaskVine listening on %d\n", vine_port(m));
2424

2525
printf("Declaring tasks...");
26-
bool start_timer = true
26+
2727
for(i=0;i<tasksC;i++) {
2828
struct vine_task *t = vine_task_create(":");
2929
vine_task_set_cores(t, 1);
30-
30+
clock_t start = clock();
3131
int task_id = vine_submit(m, t);
3232
while(!vine_empty(m)) {
33-
if (start_timer):
34-
clock_t start = clock();
3533
t = vine_wait(m, 5);
3634
if(t) {
3735
vine_task_delete(t);

test-vine-task-throughput.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ int main(int argc, char *argv[])
3030
}
3131

3232
printf("waiting for tasks to complete...\n");
33-
bool start_timer = true;
33+
clock_t start = clock();
3434
while(!vine_empty(m)) {
3535
t = vine_wait(m, 5);
36-
if (start_timer):
37-
clock_t start = clock();
38-
start = false
3936
if(t) {
4037
vine_task_delete(t);
4138
}

test-vine-task-throughput.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
. ./install-conda-devel.sh
55

66
# Install conda development environment
7-
. ./install-github.sh
7+
source ./install-github.sh
8+
9+
conda create -yq --prefix ${CONDA_ENV} -c conda-forge --strict-channel-priority ndcctools dask
10+
conda activate ${CONDA_ENV}
811

912
# Run the serverless test case.
1013
python3 test-vine-task-throughput.py
14+
python3 test-vine-task-serverless.py

0 commit comments

Comments
 (0)