[nvptx offloading] Only 64-bit configurations are currently supported
[gcc.git] / libgomp / plugin / plugin-nvptx.c
index ee3a0ae14a935e685cf43efd16a797a14a16e2fb..b67d3015ca520a5188380e89412c2447a1cc51bb 100644 (file)
@@ -777,6 +777,11 @@ nvptx_get_num_devices (void)
   int n;
   CUresult r;
 
+  /* PR libgomp/65099: Currently, we only support offloading in 64-bit
+     configurations.  */
+  if (sizeof (void *) != 8)
+    return 0;
+
   /* This function will be called before the plugin has been initialized in
      order to enumerate available devices, but CUDA API routines can't be used
      until cuInit has been called.  Just call it now (but don't yet do any