From 9497dd6e6238aa9d8691f31a8780114f1f39e464 Mon Sep 17 00:00:00 2001 From: Dmitry Vodopyanov Date: Mon, 12 Jul 2021 18:37:28 +0300 Subject: [PATCH] [SYCL] Specify namespace for online_compiler in SYCL LIT tests This patch fixes failure in intel/llvm:#4014 caused by existance of the online_compiler class in deprecated sycl::INTEL namespace and in modern one sycl::ext::intel --- SYCL/OnlineCompiler/online_compiler_common.hpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/SYCL/OnlineCompiler/online_compiler_common.hpp b/SYCL/OnlineCompiler/online_compiler_common.hpp index c857d0f626..63458548e6 100644 --- a/SYCL/OnlineCompiler/online_compiler_common.hpp +++ b/SYCL/OnlineCompiler/online_compiler_common.hpp @@ -56,7 +56,8 @@ int main(int argc, char **argv) { { // Compile and run a trivial OpenCL kernel. std::cout << "Test case1\n"; - online_compiler Compiler; + sycl::INTEL::online_compiler + Compiler; std::vector IL; try { IL = Compiler.compile( @@ -78,7 +79,8 @@ int main(int argc, char **argv) { { // Compile and run a trivial OpenCL kernel using online_compiler() // constructor accepting SYCL device. std::cout << "Test case2\n"; - online_compiler Compiler(Device); + sycl::INTEL::online_compiler + Compiler(Device); std::vector IL; try { IL = Compiler.compile(CLSource); @@ -97,7 +99,7 @@ int main(int argc, char **argv) { // PATHs to clangFEWrapper library properly. { // Compile a trivial CM kernel. std::cout << "Test case3\n"; - online_compiler Compiler; + sycl::INTEL::online_compiler Compiler; try { std::vector IL = Compiler.compile(CMSource); @@ -111,7 +113,8 @@ int main(int argc, char **argv) { { // Compile a source with syntax errors. std::cout << "Test case4\n"; - online_compiler Compiler; + sycl::INTEL::online_compiler + Compiler; std::vector IL; bool TestPassed = false; try { @@ -130,7 +133,8 @@ int main(int argc, char **argv) { { // Compile a good CL source using unrecognized compilation options. std::cout << "Test case5\n"; - online_compiler Compiler; + sycl::INTEL::online_compiler + Compiler; std::vector IL; bool TestPassed = false; try { @@ -152,7 +156,8 @@ int main(int argc, char **argv) { { // Try compiling CM source with OpenCL compiler. std::cout << "Test case6\n"; - online_compiler Compiler; + sycl::INTEL::online_compiler + Compiler; std::vector IL; bool TestPassed = false; try {