From 599624d96207a3aed08ccd573e7d7e75e92c99f9 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Wed, 19 Mar 2014 11:25:33 +0100 Subject: [PATCH] fix for nvptx target --- run_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_tests.py b/run_tests.py index e9bc8e90..f79896f4 100755 --- a/run_tests.py +++ b/run_tests.py @@ -271,7 +271,8 @@ def run_test(testname): ispc_cmd += " --emit-c++ --c++-include-file=%s" % add_prefix(options.include_file) if is_nvptx_target: filename4ptx = "/tmp/"+os.path.basename(filename)+".parsed.ispc" - grep_cmd = "grep -v 'export uniform int width' %s > %s " % \ +# grep_cmd = "grep -v 'export uniform int width' %s > %s " % \ + grep_cmd = "sed 's/export\ uniform\ int\ width/static uniform\ int\ width/g' %s > %s" % \ (filename, filename4ptx) if options.verbose: print "Grepping: %s" % grep_cmd