Skip to content

Commit

Permalink
Merge pull request #25 from spcl/test-fixes
Browse files Browse the repository at this point in the history
Fixed Parallel Execution for Tests
  • Loading branch information
acalotoiu authored Apr 13, 2023
2 parents 396fb01 + 425056a commit c947a63
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 12 deletions.
2 changes: 0 additions & 2 deletions test/SDFG/Integration/Converter-Translator/binop.mlir
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// RUN: sdfg-opt --convert-to-sdfg %s | sdfg-translate --mlir-to-sdfg | python3 %S/../execute_sdfg.py | FileCheck %s
// HACK: Has issues with parallel execution. Make sure it runs sequentially
// ALLOW_RETRIES: 10
// CHECK: begin_dump: [[ARRAY:[a-zA-Z0-9_]*]]
// CHECK-NEXT: 3
// CHECK-NEXT: end_dump: [[ARRAY]]
Expand Down
2 changes: 0 additions & 2 deletions test/SDFG/Integration/Converter-Translator/const42.mlir
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// RUN: sdfg-opt --convert-to-sdfg %s | sdfg-translate --mlir-to-sdfg | python3 %S/../execute_sdfg.py | FileCheck %s
// HACK: Has issues with parallel execution. Make sure it runs sequentially
// ALLOW_RETRIES: 10
// CHECK: begin_dump: [[ARRAY:[a-zA-Z0-9_]*]]
// CHECK-NEXT: 42
// CHECK-NEXT: end_dump: [[ARRAY]]
Expand Down
2 changes: 0 additions & 2 deletions test/SDFG/Integration/Converter-Translator/vec_sum_for.mlir
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: sdfg-opt --convert-to-sdfg %s | sdfg-translate --mlir-to-sdfg | python3 %S/../execute_sdfg.py | FileCheck %s

// HACK: Has issues with parallel execution. Make sure it runs sequentially
// ALLOW_RETRIES: 10
// CHECK: begin_dump: [[ARRAY:[a-zA-Z0-9_]*]]
// CHECK-COUNT-64: 3
// CHECK-NEXT: end_dump: [[ARRAY]]
Expand Down
2 changes: 0 additions & 2 deletions test/SDFG/Integration/Converter-Translator/vec_sum_while.mlir
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: sdfg-opt --convert-to-sdfg %s | sdfg-translate --mlir-to-sdfg | python3 %S/../execute_sdfg.py | FileCheck %s

// HACK: Has issues with parallel execution. Make sure it runs sequentially
// ALLOW_RETRIES: 10
// CHECK: begin_dump: [[ARRAY:[a-zA-Z0-9_]*]]
// CHECK-COUNT-64: 3
// CHECK-NEXT: end_dump: [[ARRAY]]
Expand Down
3 changes: 3 additions & 0 deletions test/SDFG/Integration/execute_sdfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import sys
import dace
from dace import SDFG
from dace.config import Config

Config.set("cache", value='unique')

sdfg = SDFG.from_json(json.load(sys.stdin))
sdfg.validate()
Expand Down
3 changes: 3 additions & 0 deletions test/SDFG/Translate/execute_sdfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import sys
import dace
from dace import SDFG
from dace.config import Config

Config.set("cache", value='unique')

sdfg = SDFG.from_json(json.load(sys.stdin))
obj = sdfg.compile()
Expand Down
2 changes: 0 additions & 2 deletions test/SDFG/Translate/tasklet/multi_return.mlir
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: sdfg-translate --mlir-to-sdfg %s | python3 %S/../import_translation_test.py

// RUN: sdfg-translate --mlir-to-sdfg %s | python3 %S/../execute_sdfg.py | FileCheck %s
// HACK: Has issues with parallel execution. Make sure it runs sequentially
// ALLOW_RETRIES: 10
// CHECK: begin_dump: [[ARRAY:[a-zA-Z0-9_]*]]
// CHECK-NEXT: 1
// CHECK-NEXT: end_dump: [[ARRAY]]
Expand Down
2 changes: 0 additions & 2 deletions test/SDFG/Translate/tasklet/multi_return_interdependent.mlir
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: sdfg-translate --mlir-to-sdfg %s | python3 %S/../import_translation_test.py

// RUN: sdfg-translate --mlir-to-sdfg %s | python3 %S/../execute_sdfg.py | FileCheck %s
// HACK: Has issues with parallel execution. Make sure it runs sequentially
// ALLOW_RETRIES: 10
// CHECK: begin_dump: [[ARRAY:[a-zA-Z0-9_]*]]
// CHECK-NEXT: 1
// CHECK-NEXT: end_dump: [[ARRAY]]
Expand Down

0 comments on commit c947a63

Please sign in to comment.