[clang] [llvm] [Offload] Add GetErrorName and GetErrorString to LLVMOffloadKernel (PR #212887)

Sophia Herrmann via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 18:03:05 PDT 2026


================
@@ -41,5 +41,5 @@ int main(int argc, char **argv) {
 
   cudaError_t Err = cudaSetDevice(-1);
   printf("set invalid device: %u\n", Err);
-  // CHECK: set invalid device: 1
+  // CHECK: set invalid device: 2
----------------
jellytabby wrote:

It's not system specific, this PR added InvalidValue, which made the numeric value of InvalidDevice be 2 instead of 1

https://github.com/llvm/llvm-project/pull/212887


More information about the cfe-commits mailing list