Visible to Intel only — GUID: GUID-941240CA-AE7D-457E-B322-64059E37584A
Visible to Intel only — GUID: GUID-941240CA-AE7D-457E-B322-64059E37584A
DPCT1003
Message
Migrated API does not return error code. (*, 0) is inserted. You may need to rewrite this code.
Detailed Help
Typically, this happens because the CUDA* API returns an error code and then it is consumed by the program logic.
SYCL* uses exceptions to report errors and does not return the error code.
Intel® DPC++ Compatibility Tool inserts a (*, 0) operator, so that the resulting application can be compiled. This operator returns 0 and is inserted if the return code is expected by the program logic and the new API does not return it. You should review all such places in the code.
Suggestions to Fix
If in a DPC++ application you:
Do not need the code that consumes the error code, remove the code and the (*, 0) operator.
Need the code that consumes the error code, try to replace it with an exception handling code and use your logic in an exception handler.