Skip to content

Commit aa424bb

Browse files
committed
Address comment left in PR #17. (#18)
Address comment left in PR #17. (#18) Signed-off-by: Tiotto, Ettore <ettore.tiotto@intel.com>
1 parent 317ec7a commit aa424bb

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

polygeist/tools/cgeist/Test/Verification/sycl/constructors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11-
// RUN: sycl-clang.py %s -S -function=* 2> /dev/null | FileCheck %s
11+
// RUN: sycl-clang.py %s -S 2> /dev/null | FileCheck %s
1212

1313
#include <sycl/sycl.hpp>
1414

polygeist/tools/cgeist/Test/Verification/sycl/functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11-
// RUN: sycl-clang.py %s -S -function=* | FileCheck %s
11+
// RUN: sycl-clang.py %s -S | FileCheck %s
1212

1313
#include <sycl/sycl.hpp>
1414

polygeist/tools/cgeist/Test/Verification/sycl/kernels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11-
// RUN: sycl-clang.py %s -S -function=* | FileCheck %s
11+
// RUN: sycl-clang.py %s -S | FileCheck %s
1212

1313
#include <sycl/sycl.hpp>
1414

polygeist/tools/cgeist/Test/Verification/sycl/types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11-
// RUN: sycl-clang.py %s -S -function=* | FileCheck %s
11+
// RUN: sycl-clang.py %s -S | FileCheck %s
1212

1313
#include <sycl/sycl.hpp>
1414

polygeist/tools/cgeist/sycl-clang.py.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import subprocess
1515
import shlex
1616

1717
# run programs with
18-
# sycl-clang.py <file> 2> /dev/null
18+
# sycl-clang.py <file> <cgeist flags> 2> /dev/null
1919

2020
def main():
2121
bin_path = "@CMAKE_RUNTIME_OUTPUT_DIRECTORY@"
@@ -25,11 +25,10 @@ def main():
2525

2626
# Invoke clang, capture the command line produced by clang.
2727
clang_args = [clang_tool, "-###", "-fsycl", "-fsycl-device-only", "-D__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__"]
28-
n = len(clang_args)
2928
clang_args.extend(sys.argv[1:2])
3029
clang_res = subprocess.Popen(clang_args, stderr=subprocess.PIPE)
3130
output = clang_res.stderr.readlines()
32-
expanded_clang_args = output[n].decode("utf-8")
31+
expanded_clang_args = output[5].decode("utf-8")
3332
split_output = shlex.split(expanded_clang_args)
3433

3534
# Form the cgeist invocation command. Append the MLIR flags first, then append the clang flags after "--args".

0 commit comments

Comments
 (0)