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

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 16:55:00 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
----------------
jdoerfert wrote:

don't hardcode the number if it is system specific.

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


More information about the cfe-commits mailing list