DPCT1015#

Message#

Output needs adjustment.

Detailed Help#

SYCL* device code uses SYCL output stream instead of printf-like formatted strings. Adjustments may be needed to achieve the desired output.

Suggestions to Fix#

Use a SYCL output stream instead of a printf-like formatted string.

For example, this original CUDA* code:

1__global__ void kernel() {
2  ...
3  printf("value is %d\n", value);
4}

results in the following migrated SYCL code:

1void kernel(const sycl::stream &stream_ct1) {
2  ...
3  /*
4  DPCT1015:0: Output needs adjustment.
5  */
6  stream_ct1 << "value is %d\n";
7}

which is rewritten to:

1void kernel(const sycl::stream &stream_ct1) {
2  ...
3  stream_ct1 << "value is " << value << "\n";
4}