Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 31d333f

Browse files
[SYCL] Use non-deprecated names in online_compiler_common.hpp (#1080)
1 parent d970da8 commit 31d333f

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

SYCL/OnlineCompiler/online_compiler_common.hpp

+12-11
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ int main(int argc, char **argv) {
5555

5656
{ // Compile and run a trivial OpenCL kernel.
5757
std::cout << "Test case1\n";
58-
sycl::ext::intel::online_compiler<
59-
sycl::ext::intel::source_language::opencl_c>
58+
sycl::ext::intel::experimental::online_compiler<
59+
sycl::ext::intel::experimental::source_language::opencl_c>
6060
Compiler;
6161
std::vector<byte> IL;
6262
try {
@@ -79,8 +79,8 @@ int main(int argc, char **argv) {
7979
{ // Compile and run a trivial OpenCL kernel using online_compiler()
8080
// constructor accepting SYCL device.
8181
std::cout << "Test case2\n";
82-
sycl::ext::intel::online_compiler<
83-
sycl::ext::intel::source_language::opencl_c>
82+
sycl::ext::intel::experimental::online_compiler<
83+
sycl::ext::intel::experimental::source_language::opencl_c>
8484
Compiler(Device);
8585
std::vector<byte> IL;
8686
try {
@@ -100,7 +100,8 @@ int main(int argc, char **argv) {
100100
// PATHs to clangFEWrapper library properly.
101101
{ // Compile a trivial CM kernel.
102102
std::cout << "Test case3\n";
103-
sycl::ext::intel::online_compiler<sycl::ext::intel::source_language::cm>
103+
sycl::ext::intel::experimental::online_compiler<
104+
sycl::ext::intel::experimental::source_language::cm>
104105
Compiler;
105106
try {
106107
std::vector<byte> IL = Compiler.compile(CMSource);
@@ -115,8 +116,8 @@ int main(int argc, char **argv) {
115116

116117
{ // Compile a source with syntax errors.
117118
std::cout << "Test case4\n";
118-
sycl::ext::intel::online_compiler<
119-
sycl::ext::intel::source_language::opencl_c>
119+
sycl::ext::intel::experimental::online_compiler<
120+
sycl::ext::intel::experimental::source_language::opencl_c>
120121
Compiler;
121122
std::vector<byte> IL;
122123
bool TestPassed = false;
@@ -136,8 +137,8 @@ int main(int argc, char **argv) {
136137

137138
{ // Compile a good CL source using unrecognized compilation options.
138139
std::cout << "Test case5\n";
139-
sycl::ext::intel::online_compiler<
140-
sycl::ext::intel::source_language::opencl_c>
140+
sycl::ext::intel::experimental::online_compiler<
141+
sycl::ext::intel::experimental::source_language::opencl_c>
141142
Compiler;
142143
std::vector<byte> IL;
143144
bool TestPassed = false;
@@ -160,8 +161,8 @@ int main(int argc, char **argv) {
160161

161162
{ // Try compiling CM source with OpenCL compiler.
162163
std::cout << "Test case6\n";
163-
sycl::ext::intel::online_compiler<
164-
sycl::ext::intel::source_language::opencl_c>
164+
sycl::ext::intel::experimental::online_compiler<
165+
sycl::ext::intel::experimental::source_language::opencl_c>
165166
Compiler;
166167
std::vector<byte> IL;
167168
bool TestPassed = false;

0 commit comments

Comments
 (0)