DPCT1029#
Message#
SYCL currently does not support getting device resource limits. The output parameter(s) are set to 0.
Detailed Help#
SYCL* currently does not support getting device resource limits. The output parameter(s) are set to 0.
Visit the Migrating to SYCL forum for additional help.
Suggestions to Fix#
Review the logic and adjust it manually.
For example, this original CUDA* code:
1 void foo(size_t *value) {
2 cudaDeviceGetLimit(value, cudaLimitPrintfFifoSize);
3 }
results in the following migrated SYCL code:
1 void foo(size_t *value) {
2 /*
3 DPCT1029:0: SYCL currently does not support getting device resource limits.
4 The output parameter(s) are set to 0.
5 */
6 *value = 0;
7 }
which is rewritten to:
1 void foo(size_t *value) {
2 *value = totalBufferSize /* the first argument of the constructor of sycl::stream */;
3 }