Repository navigation
Commit 275b203
authored
Enable testing for
Signed-off-by: Alok Joshi <aljoshi@nvidia.com>NSPY_NCU_INIT_AT_IMPORT=0 mode: The test was doing a CUDA initialization at the top level, hence CUDA was getting initialized during pytest's test collection phase. This was causing nsight.analyze.kernel's lazy loading of the NCU injection to fail. MR updates the test to make the torch.cuda.init() call inside main. (#67)1 parent f56f372 commit 275b203
1 file changed
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | 16 | | |
19 | | - | |
| 17 | + | |
20 | 18 | | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | | - | |
| 59 | + | |
0 commit comments