Re: nvptx: 'cuDeviceGetCount' failure is fatal

2024-03-08 Thread Thomas Schwinge
Hi Tobias! On 2024-03-07T15:28:21+0100, Tobias Burnus wrote: > Thomas Schwinge wrote: >> OK to push the attached "nvptx: 'cuDeviceGetCount' failure is fatal"? > > I think the real question is: what does a 'cuDeviceGetCount' fail mean? Internally to the CUDA stack: the error codes that you've cit

Re: nvptx: 'cuDeviceGetCount' failure is fatal

2024-03-07 Thread Tobias Burnus
Hi Thomas, Thomas Schwinge wrote: /* Return the number of GCN devices on the system. */ int -GOMP_OFFLOAD_get_num_devices (void) +GOMP_OFFLOAD_get_num_devices (unsigned int omp_requires_mask) { if (!init_hsa_context ()) return 0; + /* Return -1 if no omp_requires_mask cannot be