|
10 | 10 | from numba import config |
11 | 11 |
|
12 | 12 | TEST_BIN_DIR = os.getenv("NUMBA_CUDA_TEST_BIN_DIR") |
13 | | -test_device_functions_a = os.path.join( |
14 | | - TEST_BIN_DIR, "test_device_functions.a" |
15 | | -) |
16 | | -test_device_functions_cubin = os.path.join( |
17 | | - TEST_BIN_DIR, "test_device_functions.cubin" |
18 | | -) |
19 | | -test_device_functions_cu = os.path.join( |
20 | | - TEST_BIN_DIR, "test_device_functions.cu" |
21 | | -) |
22 | | -test_device_functions_fatbin = os.path.join( |
23 | | - TEST_BIN_DIR, "test_device_functions.fatbin" |
24 | | -) |
25 | | -test_device_functions_o = os.path.join( |
26 | | - TEST_BIN_DIR, "test_device_functions.o" |
27 | | -) |
28 | | -test_device_functions_ptx = os.path.join( |
29 | | - TEST_BIN_DIR, "test_device_functions.ptx" |
30 | | -) |
31 | | -test_device_functions_ltoir = os.path.join( |
32 | | - TEST_BIN_DIR, "test_device_functions.ltoir" |
33 | | -) |
| 13 | +if TEST_BIN_DIR: |
| 14 | + test_device_functions_a = os.path.join( |
| 15 | + TEST_BIN_DIR, "test_device_functions.a" |
| 16 | + ) |
| 17 | + test_device_functions_cubin = os.path.join( |
| 18 | + TEST_BIN_DIR, "test_device_functions.cubin" |
| 19 | + ) |
| 20 | + test_device_functions_cu = os.path.join( |
| 21 | + TEST_BIN_DIR, "test_device_functions.cu" |
| 22 | + ) |
| 23 | + test_device_functions_fatbin = os.path.join( |
| 24 | + TEST_BIN_DIR, "test_device_functions.fatbin" |
| 25 | + ) |
| 26 | + test_device_functions_o = os.path.join( |
| 27 | + TEST_BIN_DIR, "test_device_functions.o" |
| 28 | + ) |
| 29 | + test_device_functions_ptx = os.path.join( |
| 30 | + TEST_BIN_DIR, "test_device_functions.ptx" |
| 31 | + ) |
| 32 | + test_device_functions_ltoir = os.path.join( |
| 33 | + TEST_BIN_DIR, "test_device_functions.ltoir" |
| 34 | + ) |
34 | 35 |
|
35 | 36 |
|
36 | 37 | @unittest.skipIf( |
|
0 commit comments