Repository navigation
Commit c9f0ddf
committed
test(cuda.bindings): match the headless EGL device to CUDA device 0 in the GL interop tests
#2865 made cuda.core's graphics tests pick the EGL device that backs the current CUDA
device, because CUDA_VISIBLE_DEVICES does not reorder EGL's device enumeration. The
cuda.bindings GL interop tests still opened EGL device 0, so on a headless multi-GPU host
where CUDA device 0 is another GPU, cudaGraphicsGLRegisterImage returned
cudaErrorInvalidDevice. Use the same select_headless_egl_device_for_cuda helper for CUDA
device 0, which these tests register against.
Tests written with Claude Opus 5.5 and reviewed by the contributor.
Signed-off-by: 0z5a <[email protected]>1 parent d4c71ef commit c9f0ddf
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
0 commit comments