Developer Guide and Reference

  • 2021.3
  • 06/28/2021
  • Public Content

DPCT1024

Message

The original code returned the error code that was further consumed by the program logic. This original code was replaced with 0. You may need to rewrite the program logic consuming the error code.

Detailed Help

This warning is generated in cases where in the original code, the CUDA* API call returns the error code, which is consumed by the program logic:
handleError(cudaEventRecord(e));
If in the resulting code the CUDA API call is replaced by the code, which does not return the error code, 0 is used as an input to the program logic, consuming the error code:
e_ct1 = clock(), handleError(0);
The error handling code in that case must be verified and may require replacing it with exception handling code or removed completely.

Suggestions to Fix

Verify the code correctness.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.