unified-runtime
unified-runtime copied to clipboard
[Cuda] Save the Cuda native error code on adapter-specific errors
This ErrorAdapterNativeCode can be used to propage the native error code values up the stack from unified-runtime when calling urAdapterGetLastError, if needed. This can be helpful in DPC++ sycl runtime exception handling, similarly to how the already handily setup setAdapterSpecificMessage also preserves the native error code by appending it to an error message buffer.