Visible to Intel only — GUID: GUID-81C56557-8C2C-4526-91C0-4F67AC884A49
Visible to Intel only — GUID: GUID-81C56557-8C2C-4526-91C0-4F67AC884A49
DPCT1017
Message
The <SYCL API name> call is used instead of the <CUDA API name> call. These two calls do not provide exactly the same functionality. Check the potential precision and/or performance issues for the generated code.
Detailed Help
Intel® DPC++ Compatibility Tool did not find an exact functional equivalent of the function in SYCL*, so it used the closest alternative. The replacement may impact your code precision and/or performance. Verify the code correctness/performance.
Suggestions to Fix
Verify the code correctness/performance.
For example, this original CUDA* code:
__global__ void k(float *out, float *in) {
*out = normf(3, in);
}
results in the following migrated SYCL code:
void k(float *out, float *in) {
/*
DPCT1017:0: The dpct::length call is used instead of the normf call. These two
calls do not provide exactly the same functionality. Check the potential
precision and/or performance issues for the generated code.
*/
*out = dpct::length(in, 3);
}
which is rewritten to:
#include <sycl/ext/intel/math.hpp>
void k(float *out, float *in) {
/*
If the extension API sycl::ext::intel::math::norm is available, the following
line can alternately be migrated to *out = sycl::ext::intel::math::norm(3, in);
*/
*out = dpct::length(in, 3);
}