Commit 00edaab
{UR][L0] Return device version based on DeviceIpVersion
When being queried a device version:
- CUDA adapter returns the compute capability version of the device,
- HIP adapter returns the architecture name.
Both of these are what define a GPU architecture to compile binaries for
and can be used with GPU compilers, this is useful information for
applications and developers.
On L0/Intel side, prior to this change, it returns the L0 API version.
This information is already returned in BACKEND_RUNTIME_VERSION and
DRIVER_VERSION queries.
With this change, we align the adapters behavior with CUDA and HIP, and
return the Intel device architecture version that can be used with ocloc
compiler.1 parent 65c39c8 commit 00edaab
1 file changed
+22
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
342 | 361 | | |
343 | 362 | | |
344 | 363 | | |
| |||
0 commit comments