Commit db1b12c
Make v2 L0 the default (L0) adapter for BMG and newer (#19333)
The loader will iterate over all adapters and call urAdapterGet() on
them. The adapters will return numAdapters, which will always be 1 for
CUDA, HIP, OpenCL and NativeCPU and either 1 or 0 for L0. If we are on
BMG or newer, the v2 adapter will return 1, otherwise, the legacy will
return 1.
llvm-lit still respects sycl_devices: level_zero:gpu means legacy
adapter and level_zero_v2:gpu means v2 adapter.
This can be changed in later PRs.1 parent f2ba695 commit db1b12c
7 files changed
Lines changed: 199 additions & 180 deletions
File tree
- scripts/templates
- source
- adapters/level_zero
- loader
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
71 | | - | |
| 68 | + | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
| |||
0 commit comments