Skip to content

Commit c8b0ea2

Browse files
authored
Update clang/test/CodeGenSYCL/nvptx-printf.cpp
1 parent f7bbcc6 commit c8b0ea2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

clang/test/CodeGenSYCL/nvptx-printf.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
#include "Inputs/sycl.hpp"
44

5-
#ifdef __SYCL_DEVICE_ONLY__
6-
#define CONSTANT __attribute__((opencl_constant))
7-
#else
8-
#define CONSTANT
9-
#endif
10-
11-
static const CONSTANT char format_2[] = "Hello! %d %f\n";
5+
static const __SYCL_CONSTANT_AS char format_2[] = "Hello! %d %f\n";
126

137
int main() {
148
// Make sure that device printf is dispatched to CUDA's vprintf syscall.

0 commit comments

Comments
 (0)