1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788
|
/*
*
* Copyright (C) 2019-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* @file ze_ldrddi.h
*
*/
#pragma once
namespace loader
{
///////////////////////////////////////////////////////////////////////////////
// Forward declaration for driver_t so this header can reference loader::driver_t*
// without requiring inclusion of ze_loader_internal.h (which includes this file).
struct driver_t;
///////////////////////////////////////////////////////////////////////////////
using ze_driver_object_t = object_t < ze_driver_handle_t >;
using ze_driver_factory_t = singleton_factory_t < ze_driver_object_t, ze_driver_handle_t >;
using ze_device_object_t = object_t < ze_device_handle_t >;
using ze_device_factory_t = singleton_factory_t < ze_device_object_t, ze_device_handle_t >;
using ze_context_object_t = object_t < ze_context_handle_t >;
using ze_context_factory_t = singleton_factory_t < ze_context_object_t, ze_context_handle_t >;
using ze_command_queue_object_t = object_t < ze_command_queue_handle_t >;
using ze_command_queue_factory_t = singleton_factory_t < ze_command_queue_object_t, ze_command_queue_handle_t >;
using ze_command_list_object_t = object_t < ze_command_list_handle_t >;
using ze_command_list_factory_t = singleton_factory_t < ze_command_list_object_t, ze_command_list_handle_t >;
using ze_fence_object_t = object_t < ze_fence_handle_t >;
using ze_fence_factory_t = singleton_factory_t < ze_fence_object_t, ze_fence_handle_t >;
using ze_event_pool_object_t = object_t < ze_event_pool_handle_t >;
using ze_event_pool_factory_t = singleton_factory_t < ze_event_pool_object_t, ze_event_pool_handle_t >;
using ze_event_object_t = object_t < ze_event_handle_t >;
using ze_event_factory_t = singleton_factory_t < ze_event_object_t, ze_event_handle_t >;
using ze_image_object_t = object_t < ze_image_handle_t >;
using ze_image_factory_t = singleton_factory_t < ze_image_object_t, ze_image_handle_t >;
using ze_module_object_t = object_t < ze_module_handle_t >;
using ze_module_factory_t = singleton_factory_t < ze_module_object_t, ze_module_handle_t >;
using ze_module_build_log_object_t = object_t < ze_module_build_log_handle_t >;
using ze_module_build_log_factory_t = singleton_factory_t < ze_module_build_log_object_t, ze_module_build_log_handle_t >;
using ze_kernel_object_t = object_t < ze_kernel_handle_t >;
using ze_kernel_factory_t = singleton_factory_t < ze_kernel_object_t, ze_kernel_handle_t >;
using ze_sampler_object_t = object_t < ze_sampler_handle_t >;
using ze_sampler_factory_t = singleton_factory_t < ze_sampler_object_t, ze_sampler_handle_t >;
using ze_physical_mem_object_t = object_t < ze_physical_mem_handle_t >;
using ze_physical_mem_factory_t = singleton_factory_t < ze_physical_mem_object_t, ze_physical_mem_handle_t >;
using ze_fabric_vertex_object_t = object_t < ze_fabric_vertex_handle_t >;
using ze_fabric_vertex_factory_t = singleton_factory_t < ze_fabric_vertex_object_t, ze_fabric_vertex_handle_t >;
using ze_fabric_edge_object_t = object_t < ze_fabric_edge_handle_t >;
using ze_fabric_edge_factory_t = singleton_factory_t < ze_fabric_edge_object_t, ze_fabric_edge_handle_t >;
using ze_external_semaphore_ext_object_t = object_t < ze_external_semaphore_ext_handle_t >;
using ze_external_semaphore_ext_factory_t = singleton_factory_t < ze_external_semaphore_ext_object_t, ze_external_semaphore_ext_handle_t >;
using ze_rtas_builder_ext_object_t = object_t < ze_rtas_builder_ext_handle_t >;
using ze_rtas_builder_ext_factory_t = singleton_factory_t < ze_rtas_builder_ext_object_t, ze_rtas_builder_ext_handle_t >;
using ze_rtas_parallel_operation_ext_object_t = object_t < ze_rtas_parallel_operation_ext_handle_t >;
using ze_rtas_parallel_operation_ext_factory_t = singleton_factory_t < ze_rtas_parallel_operation_ext_object_t, ze_rtas_parallel_operation_ext_handle_t >;
using ze_rtas_builder_exp_object_t = object_t < ze_rtas_builder_exp_handle_t >;
using ze_rtas_builder_exp_factory_t = singleton_factory_t < ze_rtas_builder_exp_object_t, ze_rtas_builder_exp_handle_t >;
using ze_rtas_parallel_operation_exp_object_t = object_t < ze_rtas_parallel_operation_exp_handle_t >;
using ze_rtas_parallel_operation_exp_factory_t = singleton_factory_t < ze_rtas_parallel_operation_exp_object_t, ze_rtas_parallel_operation_exp_handle_t >;
__zedlllocal ze_result_t ZE_APICALL
zeloaderInitDriverDDITables(loader::driver_t *driver);
}
namespace loader_driver_ddi
{
__zedlllocal void ZE_APICALL
zeDestroyDDiDriverTables(ze_dditable_driver_t* pDdiTable);
__zedlllocal ze_result_t ZE_APICALL
zeDriverGetApiVersion(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
ze_api_version_t* version ///< [out] api version
);
__zedlllocal ze_result_t ZE_APICALL
zeDriverGetProperties(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
ze_driver_properties_t* pDriverProperties ///< [in,out] query result for driver properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDriverGetIpcProperties(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
ze_driver_ipc_properties_t* pIpcProperties ///< [in,out] query result for IPC properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDriverGetExtensionProperties(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
uint32_t* pCount, ///< [in,out] pointer to the number of extension properties.
///< if count is zero, then the driver shall update the value with the
///< total number of extension properties available.
///< if count is greater than the number of extension properties available,
///< then the driver shall update the value with the correct number of
///< extension properties available.
ze_driver_extension_properties_t* pExtensionProperties ///< [in,out][optional][range(0, *pCount)] array of query results for
///< extension properties.
///< if count is less than the number of extension properties available,
///< then driver shall only retrieve that number of extension properties.
);
__zedlllocal ze_result_t ZE_APICALL
zeDriverGetExtensionFunctionAddress(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
const char* name, ///< [in] extension function name
void** ppFunctionAddress ///< [out] pointer to function pointer
);
__zedlllocal ze_result_t ZE_APICALL
zeDriverGetLastErrorDescription(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
const char** ppString ///< [in,out] pointer to a null-terminated array of characters describing
///< cause of error.
);
__zedlllocal ze_context_handle_t ZE_APICALL
zeDriverGetDefaultContext(
ze_driver_handle_t hDriver ///< [in] handle of the driver instance
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGet(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
uint32_t* pCount, ///< [in,out] pointer to the number of devices.
///< if count is zero, then the driver shall update the value with the
///< total number of devices available.
///< if count is greater than the number of devices available, then the
///< driver shall update the value with the correct number of devices available.
ze_device_handle_t* phDevices ///< [in,out][optional][range(0, *pCount)] array of handle of devices.
///< if count is less than the number of devices available, then driver
///< shall only retrieve that number of devices.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetRootDevice(
ze_device_handle_t hDevice, ///< [in] handle of the device object
ze_device_handle_t* phRootDevice ///< [in,out] parent root device.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetSubDevices(
ze_device_handle_t hDevice, ///< [in] handle of the device object
uint32_t* pCount, ///< [in,out] pointer to the number of sub-devices.
///< if count is zero, then the driver shall update the value with the
///< total number of sub-devices available.
///< if count is greater than the number of sub-devices available, then the
///< driver shall update the value with the correct number of sub-devices available.
ze_device_handle_t* phSubdevices ///< [in,out][optional][range(0, *pCount)] array of handle of sub-devices.
///< if count is less than the number of sub-devices available, then driver
///< shall only retrieve that number of sub-devices.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_device_properties_t* pDeviceProperties ///< [in,out] query result for device properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetComputeProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_device_compute_properties_t* pComputeProperties ///< [in,out] query result for compute properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetModuleProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_device_module_properties_t* pModuleProperties///< [in,out] query result for module properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetCommandQueueGroupProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
uint32_t* pCount, ///< [in,out] pointer to the number of command queue group properties.
///< if count is zero, then the driver shall update the value with the
///< total number of command queue group properties available.
///< if count is greater than the number of command queue group properties
///< available, then the driver shall update the value with the correct
///< number of command queue group properties available.
ze_command_queue_group_properties_t* pCommandQueueGroupProperties ///< [in,out][optional][range(0, *pCount)] array of query results for
///< command queue group properties.
///< if count is less than the number of command queue group properties
///< available, then driver shall only retrieve that number of command
///< queue group properties.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetMemoryProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
uint32_t* pCount, ///< [in,out] pointer to the number of memory properties.
///< if count is zero, then the driver shall update the value with the
///< total number of memory properties available.
///< if count is greater than the number of memory properties available,
///< then the driver shall update the value with the correct number of
///< memory properties available.
ze_device_memory_properties_t* pMemProperties ///< [in,out][optional][range(0, *pCount)] array of query results for
///< memory properties.
///< if count is less than the number of memory properties available, then
///< driver shall only retrieve that number of memory properties.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetMemoryAccessProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_device_memory_access_properties_t* pMemAccessProperties ///< [in,out] query result for memory access properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetCacheProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
uint32_t* pCount, ///< [in,out] pointer to the number of cache properties.
///< if count is zero, then the driver shall update the value with the
///< total number of cache properties available.
///< if count is greater than the number of cache properties available,
///< then the driver shall update the value with the correct number of
///< cache properties available.
ze_device_cache_properties_t* pCacheProperties ///< [in,out][optional][range(0, *pCount)] array of query results for cache properties.
///< if count is less than the number of cache properties available, then
///< driver shall only retrieve that number of cache properties.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetImageProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_device_image_properties_t* pImageProperties ///< [in,out] query result for image properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetExternalMemoryProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_device_external_memory_properties_t* pExternalMemoryProperties ///< [in,out] query result for external memory properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetP2PProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device performing the access
ze_device_handle_t hPeerDevice, ///< [in] handle of the peer device with the allocation
ze_device_p2p_properties_t* pP2PProperties ///< [in,out] Peer-to-Peer properties between source and peer device
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceCanAccessPeer(
ze_device_handle_t hDevice, ///< [in] handle of the device performing the access
ze_device_handle_t hPeerDevice, ///< [in] handle of the peer device with the allocation
ze_bool_t* value ///< [out] returned access capability
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetStatus(
ze_device_handle_t hDevice ///< [in] handle of the device
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetGlobalTimestamps(
ze_device_handle_t hDevice, ///< [in] handle of the device
uint64_t* hostTimestamp, ///< [out] value of the Host's global timestamp that correlates with the
///< Device's global timestamp value.
uint64_t* deviceTimestamp ///< [out] value of the Device's global timestamp that correlates with the
///< Host's global timestamp value.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceSynchronize(
ze_device_handle_t hDevice ///< [in] handle of the device
);
__zedlllocal ze_result_t ZE_APICALL
zeContextCreate(
ze_driver_handle_t hDriver, ///< [in] handle of the driver object
const ze_context_desc_t* desc, ///< [in] pointer to context descriptor
ze_context_handle_t* phContext ///< [out] pointer to handle of context object created
);
__zedlllocal ze_result_t ZE_APICALL
zeContextCreateEx(
ze_driver_handle_t hDriver, ///< [in] handle of the driver object
const ze_context_desc_t* desc, ///< [in] pointer to context descriptor
uint32_t numDevices, ///< [in][optional] number of device handles; must be 0 if `nullptr ==
///< phDevices`
ze_device_handle_t* phDevices, ///< [in][optional][range(0, numDevices)] array of device handles which
///< context has visibility.
///< if nullptr, then all devices and any sub-devices supported by the
///< driver instance are
///< visible to the context.
///< otherwise, the context only has visibility to the devices and any
///< sub-devices of the
///< devices in this array.
ze_context_handle_t* phContext ///< [out] pointer to handle of context object created
);
__zedlllocal ze_result_t ZE_APICALL
zeContextDestroy(
ze_context_handle_t hContext ///< [in][release] handle of context object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeContextGetStatus(
ze_context_handle_t hContext ///< [in] handle of context object
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandQueueCreate(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device object
const ze_command_queue_desc_t* desc, ///< [in] pointer to command queue descriptor
ze_command_queue_handle_t* phCommandQueue ///< [out] pointer to handle of command queue object created
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandQueueDestroy(
ze_command_queue_handle_t hCommandQueue ///< [in][release] handle of command queue object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandQueueExecuteCommandLists(
ze_command_queue_handle_t hCommandQueue, ///< [in] handle of the command queue
uint32_t numCommandLists, ///< [in] number of command lists to execute
ze_command_list_handle_t* phCommandLists, ///< [in][range(0, numCommandLists)] list of handles of the command lists
///< to execute
ze_fence_handle_t hFence ///< [in][optional] handle of the fence to signal on completion
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandQueueSynchronize(
ze_command_queue_handle_t hCommandQueue, ///< [in] handle of the command queue
uint64_t timeout ///< [in] if non-zero, then indicates the maximum time (in nanoseconds) to
///< yield before returning ::ZE_RESULT_SUCCESS or ::ZE_RESULT_NOT_READY;
///< if zero, then immediately returns the status of the command queue;
///< if `UINT64_MAX`, then function will not return until complete or
///< device is lost.
///< Due to external dependencies, timeout may be rounded to the closest
///< value allowed by the accuracy of those dependencies.
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandQueueGetOrdinal(
ze_command_queue_handle_t hCommandQueue, ///< [in] handle of the command queue
uint32_t* pOrdinal ///< [out] command queue group ordinal
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandQueueGetIndex(
ze_command_queue_handle_t hCommandQueue, ///< [in] handle of the command queue
uint32_t* pIndex ///< [out] command queue index within the group
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListCreate(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device object
const ze_command_list_desc_t* desc, ///< [in] pointer to command list descriptor
ze_command_list_handle_t* phCommandList ///< [out] pointer to handle of command list object created
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListCreateImmediate(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device object
const ze_command_queue_desc_t* altdesc, ///< [in] pointer to command queue descriptor
ze_command_list_handle_t* phCommandList ///< [out] pointer to handle of command list object created
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListDestroy(
ze_command_list_handle_t hCommandList ///< [in][release] handle of command list object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListClose(
ze_command_list_handle_t hCommandList ///< [in] handle of command list object to close
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListReset(
ze_command_list_handle_t hCommandList ///< [in] handle of command list object to reset
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendWriteGlobalTimestamp(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint64_t* dstptr, ///< [in,out] pointer to memory where timestamp value will be written; must
///< be 8byte-aligned.
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before executing query;
///< must be 0 if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before executing query
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListHostSynchronize(
ze_command_list_handle_t hCommandList, ///< [in] handle of the immediate command list
uint64_t timeout ///< [in] if non-zero, then indicates the maximum time (in nanoseconds) to
///< yield before returning ::ZE_RESULT_SUCCESS or ::ZE_RESULT_NOT_READY;
///< if zero, then immediately returns the status of the immediate command list;
///< if `UINT64_MAX`, then function will not return until complete or
///< device is lost.
///< Due to external dependencies, timeout may be rounded to the closest
///< value allowed by the accuracy of those dependencies.
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListGetDeviceHandle(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_device_handle_t* phDevice ///< [out] handle of the device on which the command list was created
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListGetContextHandle(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_context_handle_t* phContext ///< [out] handle of the context on which the command list was created
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListGetOrdinal(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint32_t* pOrdinal ///< [out] command queue group ordinal to which command list is submitted
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListImmediateGetIndex(
ze_command_list_handle_t hCommandListImmediate, ///< [in] handle of the immediate command list
uint32_t* pIndex ///< [out] command queue index within the group to which the immediate
///< command list is submitted
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListIsImmediate(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_bool_t* pIsImmediate ///< [out] Boolean indicating whether the command list is an immediate
///< command list (true) or not (false)
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendBarrier(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before executing barrier;
///< must be 0 if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before executing barrier
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendMemoryRangesBarrier(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint32_t numRanges, ///< [in] number of memory ranges
const size_t* pRangeSizes, ///< [in][range(0, numRanges)] array of sizes of memory range
const void** pRanges, ///< [in][range(0, numRanges)] array of memory ranges
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before executing barrier;
///< must be 0 if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before executing barrier
);
__zedlllocal ze_result_t ZE_APICALL
zeContextSystemBarrier(
ze_context_handle_t hContext, ///< [in] handle of context object
ze_device_handle_t hDevice ///< [in] handle of the device
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendMemoryCopy(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
void* dstptr, ///< [in] pointer to destination memory to copy to
const void* srcptr, ///< [in] pointer to source memory to copy from
size_t size, ///< [in] size in bytes to copy
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendMemoryFill(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
void* ptr, ///< [in] pointer to memory to initialize
const void* pattern, ///< [in] pointer to value to initialize memory to
size_t pattern_size, ///< [in] size in bytes of the value to initialize memory to
size_t size, ///< [in] size in bytes to initialize
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendMemoryCopyRegion(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
void* dstptr, ///< [in] pointer to destination memory to copy to
const ze_copy_region_t* dstRegion, ///< [in] pointer to destination region to copy to
uint32_t dstPitch, ///< [in] destination pitch in bytes
uint32_t dstSlicePitch, ///< [in] destination slice pitch in bytes. This is required for 3D region
///< copies where the `depth` member of ::ze_copy_region_t is not 0,
///< otherwise it's ignored.
const void* srcptr, ///< [in] pointer to source memory to copy from
const ze_copy_region_t* srcRegion, ///< [in] pointer to source region to copy from
uint32_t srcPitch, ///< [in] source pitch in bytes
uint32_t srcSlicePitch, ///< [in] source slice pitch in bytes. This is required for 3D region
///< copies where the `depth` member of ::ze_copy_region_t is not 0,
///< otherwise it's ignored.
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendMemoryCopyFromContext(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
void* dstptr, ///< [in] pointer to destination memory to copy to
ze_context_handle_t hContextSrc, ///< [in] handle of source context object
const void* srcptr, ///< [in] pointer to source memory to copy from
size_t size, ///< [in] size in bytes to copy
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendImageCopy(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
ze_image_handle_t hDstImage, ///< [in] handle of destination image to copy to
ze_image_handle_t hSrcImage, ///< [in] handle of source image to copy from
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendImageCopyRegion(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
ze_image_handle_t hDstImage, ///< [in] handle of destination image to copy to
ze_image_handle_t hSrcImage, ///< [in] handle of source image to copy from
const ze_image_region_t* pDstRegion, ///< [in][optional] destination region descriptor
const ze_image_region_t* pSrcRegion, ///< [in][optional] source region descriptor
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendImageCopyToMemory(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
void* dstptr, ///< [in] pointer to destination memory to copy to
ze_image_handle_t hSrcImage, ///< [in] handle of source image to copy from
const ze_image_region_t* pSrcRegion, ///< [in][optional] source region descriptor
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendImageCopyFromMemory(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
ze_image_handle_t hDstImage, ///< [in] handle of destination image to copy to
const void* srcptr, ///< [in] pointer to source memory to copy from
const ze_image_region_t* pDstRegion, ///< [in][optional] destination region descriptor
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendMemoryPrefetch(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
const void* ptr, ///< [in] pointer to start of the memory range to prefetch
size_t size ///< [in] size in bytes of the memory range to prefetch
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendMemAdvise(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
ze_device_handle_t hDevice, ///< [in] device associated with the memory advice
const void* ptr, ///< [in] Pointer to the start of the memory range
size_t size, ///< [in] Size in bytes of the memory range
ze_memory_advice_t advice ///< [in] Memory advice for the memory range
);
__zedlllocal ze_result_t ZE_APICALL
zeEventPoolCreate(
ze_context_handle_t hContext, ///< [in] handle of the context object
const ze_event_pool_desc_t* desc, ///< [in] pointer to event pool descriptor
uint32_t numDevices, ///< [in][optional] number of device handles; must be 0 if `nullptr ==
///< phDevices`
ze_device_handle_t* phDevices, ///< [in][optional][range(0, numDevices)] array of device handles which
///< have visibility to the event pool.
///< if nullptr, then event pool is visible to all devices supported by the
///< driver instance.
ze_event_pool_handle_t* phEventPool ///< [out] pointer handle of event pool object created
);
__zedlllocal ze_result_t ZE_APICALL
zeEventPoolDestroy(
ze_event_pool_handle_t hEventPool ///< [in][release] handle of event pool object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeEventCreate(
ze_event_pool_handle_t hEventPool, ///< [in] handle of the event pool
const ze_event_desc_t* desc, ///< [in] pointer to event descriptor
ze_event_handle_t* phEvent ///< [out] pointer to handle of event object created
);
__zedlllocal ze_result_t ZE_APICALL
zeEventDestroy(
ze_event_handle_t hEvent ///< [in][release] handle of event object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeEventPoolGetIpcHandle(
ze_event_pool_handle_t hEventPool, ///< [in] handle of event pool object
ze_ipc_event_pool_handle_t* phIpc ///< [out] Returned IPC event handle
);
__zedlllocal ze_result_t ZE_APICALL
zeEventPoolPutIpcHandle(
ze_context_handle_t hContext, ///< [in] handle of the context object associated with the IPC event pool
///< handle
ze_ipc_event_pool_handle_t hIpc ///< [in] IPC event pool handle
);
__zedlllocal ze_result_t ZE_APICALL
zeEventPoolOpenIpcHandle(
ze_context_handle_t hContext, ///< [in] handle of the context object to associate with the IPC event pool
///< handle
ze_ipc_event_pool_handle_t hIpc, ///< [in] IPC event pool handle
ze_event_pool_handle_t* phEventPool ///< [out] pointer handle of event pool object created
);
__zedlllocal ze_result_t ZE_APICALL
zeEventPoolCloseIpcHandle(
ze_event_pool_handle_t hEventPool ///< [in][release] handle of event pool object
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendSignalEvent(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_event_handle_t hEvent ///< [in] handle of the event
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendWaitOnEvents(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint32_t numEvents, ///< [in] number of events to wait on before continuing
ze_event_handle_t* phEvents ///< [in][range(0, numEvents)] handles of the events to wait on before
///< continuing
);
__zedlllocal ze_result_t ZE_APICALL
zeEventHostSignal(
ze_event_handle_t hEvent ///< [in] handle of the event
);
__zedlllocal ze_result_t ZE_APICALL
zeEventHostSynchronize(
ze_event_handle_t hEvent, ///< [in] handle of the event
uint64_t timeout ///< [in] if non-zero, then indicates the maximum time (in nanoseconds) to
///< yield before returning ::ZE_RESULT_SUCCESS or ::ZE_RESULT_NOT_READY;
///< if zero, then operates exactly like ::zeEventQueryStatus;
///< if `UINT64_MAX`, then function will not return until complete or
///< device is lost.
///< Due to external dependencies, timeout may be rounded to the closest
///< value allowed by the accuracy of those dependencies.
);
__zedlllocal ze_result_t ZE_APICALL
zeEventQueryStatus(
ze_event_handle_t hEvent ///< [in] handle of the event
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendEventReset(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_event_handle_t hEvent ///< [in] handle of the event
);
__zedlllocal ze_result_t ZE_APICALL
zeEventHostReset(
ze_event_handle_t hEvent ///< [in] handle of the event
);
__zedlllocal ze_result_t ZE_APICALL
zeEventQueryKernelTimestamp(
ze_event_handle_t hEvent, ///< [in] handle of the event
ze_kernel_timestamp_result_t* dstptr ///< [in,out] pointer to memory for where timestamp result will be written.
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendQueryKernelTimestamps(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint32_t numEvents, ///< [in] the number of timestamp events to query
ze_event_handle_t* phEvents, ///< [in][range(0, numEvents)] handles of timestamp events to query
void* dstptr, ///< [in,out] pointer to memory where ::ze_kernel_timestamp_result_t will
///< be written; must be size-aligned.
const size_t* pOffsets, ///< [in][optional][range(0, numEvents)] offset, in bytes, to write
///< results; address must be 4byte-aligned and offsets must be
///< size-aligned.
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before executing query;
///< must be 0 if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before executing query
);
__zedlllocal ze_result_t ZE_APICALL
zeEventGetEventPool(
ze_event_handle_t hEvent, ///< [in] handle of the event
ze_event_pool_handle_t* phEventPool ///< [out] handle of the event pool for the event
);
__zedlllocal ze_result_t ZE_APICALL
zeEventGetSignalScope(
ze_event_handle_t hEvent, ///< [in] handle of the event
ze_event_scope_flags_t* pSignalScope ///< [out] signal event scope. This is the scope of relevant cache
///< hierarchies that are flushed on a signal action before the event is
///< triggered. May be 0 or a valid combination of ::ze_event_scope_flag_t.
);
__zedlllocal ze_result_t ZE_APICALL
zeEventGetWaitScope(
ze_event_handle_t hEvent, ///< [in] handle of the event
ze_event_scope_flags_t* pWaitScope ///< [out] wait event scope. This is the scope of relevant cache
///< hierarchies invalidated on a wait action after the event is complete.
///< May be 0 or a valid combination of ::ze_event_scope_flag_t.
);
__zedlllocal ze_result_t ZE_APICALL
zeEventPoolGetContextHandle(
ze_event_pool_handle_t hEventPool, ///< [in] handle of the event pool
ze_context_handle_t* phContext ///< [out] handle of the context on which the event pool was created
);
__zedlllocal ze_result_t ZE_APICALL
zeEventPoolGetFlags(
ze_event_pool_handle_t hEventPool, ///< [in] handle of the event pool
ze_event_pool_flags_t* pFlags ///< [out] creation flags used to create the event pool; may be 0 or a
///< valid combination of ::ze_event_pool_flag_t
);
__zedlllocal ze_result_t ZE_APICALL
zeFenceCreate(
ze_command_queue_handle_t hCommandQueue, ///< [in] handle of command queue
const ze_fence_desc_t* desc, ///< [in] pointer to fence descriptor
ze_fence_handle_t* phFence ///< [out] pointer to handle of fence object created
);
__zedlllocal ze_result_t ZE_APICALL
zeFenceDestroy(
ze_fence_handle_t hFence ///< [in][release] handle of fence object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeFenceHostSynchronize(
ze_fence_handle_t hFence, ///< [in] handle of the fence
uint64_t timeout ///< [in] if non-zero, then indicates the maximum time (in nanoseconds) to
///< yield before returning ::ZE_RESULT_SUCCESS or ::ZE_RESULT_NOT_READY;
///< if zero, then operates exactly like ::zeFenceQueryStatus;
///< if `UINT64_MAX`, then function will not return until complete or
///< device is lost.
///< Due to external dependencies, timeout may be rounded to the closest
///< value allowed by the accuracy of those dependencies.
);
__zedlllocal ze_result_t ZE_APICALL
zeFenceQueryStatus(
ze_fence_handle_t hFence ///< [in] handle of the fence
);
__zedlllocal ze_result_t ZE_APICALL
zeFenceReset(
ze_fence_handle_t hFence ///< [in] handle of the fence
);
__zedlllocal ze_result_t ZE_APICALL
zeImageGetProperties(
ze_device_handle_t hDevice, ///< [in] handle of the device
const ze_image_desc_t* desc, ///< [in] pointer to image descriptor
ze_image_properties_t* pImageProperties ///< [out] pointer to image properties
);
__zedlllocal ze_result_t ZE_APICALL
zeImageCreate(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device
const ze_image_desc_t* desc, ///< [in] pointer to image descriptor
ze_image_handle_t* phImage ///< [out] pointer to handle of image object created
);
__zedlllocal ze_result_t ZE_APICALL
zeImageDestroy(
ze_image_handle_t hImage ///< [in][release] handle of image object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeMemAllocShared(
ze_context_handle_t hContext, ///< [in] handle of the context object
const ze_device_mem_alloc_desc_t* device_desc, ///< [in] pointer to device memory allocation descriptor
const ze_host_mem_alloc_desc_t* host_desc, ///< [in] pointer to host memory allocation descriptor
size_t size, ///< [in] size in bytes to allocate; must be less than or equal to the
///< `maxMemAllocSize` member of ::ze_device_properties_t
size_t alignment, ///< [in] minimum alignment in bytes for the allocation; must be a power of
///< two
ze_device_handle_t hDevice, ///< [in][optional] device handle to associate with
void** pptr ///< [out] pointer to shared allocation
);
__zedlllocal ze_result_t ZE_APICALL
zeMemAllocDevice(
ze_context_handle_t hContext, ///< [in] handle of the context object
const ze_device_mem_alloc_desc_t* device_desc, ///< [in] pointer to device memory allocation descriptor
size_t size, ///< [in] size in bytes to allocate; must be less than or equal to the
///< `maxMemAllocSize` member of ::ze_device_properties_t
size_t alignment, ///< [in] minimum alignment in bytes for the allocation; must be a power of
///< two
ze_device_handle_t hDevice, ///< [in] handle of the device
void** pptr ///< [out] pointer to device allocation
);
__zedlllocal ze_result_t ZE_APICALL
zeMemAllocHost(
ze_context_handle_t hContext, ///< [in] handle of the context object
const ze_host_mem_alloc_desc_t* host_desc, ///< [in] pointer to host memory allocation descriptor
size_t size, ///< [in] size in bytes to allocate; must be less than or equal to the
///< `maxMemAllocSize` member of ::ze_device_properties_t
size_t alignment, ///< [in] minimum alignment in bytes for the allocation; must be a power of
///< two
void** pptr ///< [out] pointer to host allocation
);
__zedlllocal ze_result_t ZE_APICALL
zeMemFree(
ze_context_handle_t hContext, ///< [in] handle of the context object
void* ptr ///< [in][release] pointer to memory to free
);
__zedlllocal ze_result_t ZE_APICALL
zeMemGetAllocProperties(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr, ///< [in] memory pointer to query
ze_memory_allocation_properties_t* pMemAllocProperties, ///< [in,out] query result for memory allocation properties
ze_device_handle_t* phDevice ///< [out][optional] device associated with this allocation
);
__zedlllocal ze_result_t ZE_APICALL
zeMemGetAddressRange(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr, ///< [in] memory pointer to query
void** pBase, ///< [in,out][optional] base address of the allocation
size_t* pSize ///< [in,out][optional] size of the allocation
);
__zedlllocal ze_result_t ZE_APICALL
zeMemGetIpcHandle(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr, ///< [in] pointer to the device memory allocation
ze_ipc_mem_handle_t* pIpcHandle ///< [out] Returned IPC memory handle
);
__zedlllocal ze_result_t ZE_APICALL
zeMemGetIpcHandleFromFileDescriptorExp(
ze_context_handle_t hContext, ///< [in] handle of the context object
uint64_t handle, ///< [in] file descriptor
ze_ipc_mem_handle_t* pIpcHandle ///< [out] Returned IPC memory handle
);
__zedlllocal ze_result_t ZE_APICALL
zeMemGetFileDescriptorFromIpcHandleExp(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_ipc_mem_handle_t ipcHandle, ///< [in] IPC memory handle
uint64_t* pHandle ///< [out] Returned file descriptor
);
__zedlllocal ze_result_t ZE_APICALL
zeMemPutIpcHandle(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_ipc_mem_handle_t handle ///< [in] IPC memory handle
);
__zedlllocal ze_result_t ZE_APICALL
zeMemOpenIpcHandle(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device to associate with the IPC memory handle
ze_ipc_mem_handle_t handle, ///< [in] IPC memory handle
ze_ipc_memory_flags_t flags, ///< [in] flags controlling the operation.
///< must be 0 (default) or a valid combination of ::ze_ipc_memory_flag_t.
void** pptr ///< [out] pointer to device allocation in this process
);
__zedlllocal ze_result_t ZE_APICALL
zeMemCloseIpcHandle(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr ///< [in][release] pointer to device allocation in this process
);
__zedlllocal ze_result_t ZE_APICALL
zeMemSetAtomicAccessAttributeExp(
ze_context_handle_t hContext, ///< [in] handle of context
ze_device_handle_t hDevice, ///< [in] device associated with the memory advice
const void* ptr, ///< [in] Pointer to the start of the memory range
size_t size, ///< [in] Size in bytes of the memory range
ze_memory_atomic_attr_exp_flags_t attr ///< [in] Atomic access attributes to set for the specified range.
///< Must be 0 (default) or a valid combination of ::ze_memory_atomic_attr_exp_flag_t.
);
__zedlllocal ze_result_t ZE_APICALL
zeMemGetAtomicAccessAttributeExp(
ze_context_handle_t hContext, ///< [in] handle of context
ze_device_handle_t hDevice, ///< [in] device associated with the memory advice
const void* ptr, ///< [in] Pointer to the start of the memory range
size_t size, ///< [in] Size in bytes of the memory range
ze_memory_atomic_attr_exp_flags_t* pAttr ///< [out] Atomic access attributes for the specified range
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleCreate(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device
const ze_module_desc_t* desc, ///< [in] pointer to module descriptor
ze_module_handle_t* phModule, ///< [out] pointer to handle of module object created
ze_module_build_log_handle_t* phBuildLog ///< [out][optional] pointer to handle of module's build log.
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleDestroy(
ze_module_handle_t hModule ///< [in][release] handle of the module
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleDynamicLink(
uint32_t numModules, ///< [in] number of modules to be linked pointed to by phModules.
ze_module_handle_t* phModules, ///< [in][range(0, numModules)] pointer to an array of modules to
///< dynamically link together.
ze_module_build_log_handle_t* phLinkLog ///< [out][optional] pointer to handle of dynamic link log.
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleBuildLogDestroy(
ze_module_build_log_handle_t hModuleBuildLog ///< [in][release] handle of the module build log object.
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleBuildLogGetString(
ze_module_build_log_handle_t hModuleBuildLog, ///< [in] handle of the module build log object.
size_t* pSize, ///< [in,out] size of build log string.
char* pBuildLog ///< [in,out][optional] pointer to null-terminated string of the log.
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleGetNativeBinary(
ze_module_handle_t hModule, ///< [in] handle of the module
size_t* pSize, ///< [in,out] size of native binary in bytes.
uint8_t* pModuleNativeBinary ///< [in,out][optional] byte pointer to native binary
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleGetGlobalPointer(
ze_module_handle_t hModule, ///< [in] handle of the module
const char* pGlobalName, ///< [in] name of global variable in module
size_t* pSize, ///< [in,out][optional] size of global variable
void** pptr ///< [in,out][optional] device visible pointer
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleGetKernelNames(
ze_module_handle_t hModule, ///< [in] handle of the module
uint32_t* pCount, ///< [in,out] pointer to the number of names.
///< if count is zero, then the driver shall update the value with the
///< total number of names available.
///< if count is greater than the number of names available, then the
///< driver shall update the value with the correct number of names available.
const char** pNames ///< [in,out][optional][range(0, *pCount)] array of names of functions.
///< if count is less than the number of names available, then driver shall
///< only retrieve that number of names.
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleGetProperties(
ze_module_handle_t hModule, ///< [in] handle of the module
ze_module_properties_t* pModuleProperties ///< [in,out] query result for module properties.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelCreate(
ze_module_handle_t hModule, ///< [in] handle of the module
const ze_kernel_desc_t* desc, ///< [in] pointer to kernel descriptor
ze_kernel_handle_t* phKernel ///< [out] handle of the Function object
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelDestroy(
ze_kernel_handle_t hKernel ///< [in][release] handle of the kernel object
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleGetFunctionPointer(
ze_module_handle_t hModule, ///< [in] handle of the module
const char* pFunctionName, ///< [in] Name of function to retrieve function pointer for.
void** pfnFunction ///< [out] pointer to function.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelSetGroupSize(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
uint32_t groupSizeX, ///< [in] group size for X dimension to use for this kernel
uint32_t groupSizeY, ///< [in] group size for Y dimension to use for this kernel
uint32_t groupSizeZ ///< [in] group size for Z dimension to use for this kernel
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelSuggestGroupSize(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
uint32_t globalSizeX, ///< [in] global width for X dimension
uint32_t globalSizeY, ///< [in] global width for Y dimension
uint32_t globalSizeZ, ///< [in] global width for Z dimension
uint32_t* groupSizeX, ///< [out] recommended size of group for X dimension
uint32_t* groupSizeY, ///< [out] recommended size of group for Y dimension
uint32_t* groupSizeZ ///< [out] recommended size of group for Z dimension
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelSuggestMaxCooperativeGroupCount(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
uint32_t* totalGroupCount ///< [out] recommended total group count.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelSetArgumentValue(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
uint32_t argIndex, ///< [in] argument index in range [0, num args - 1]
size_t argSize, ///< [in] size of argument type
const void* pArgValue ///< [in][optional] argument value represented as matching arg type. If
///< null then argument value is considered null.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelSetIndirectAccess(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
ze_kernel_indirect_access_flags_t flags ///< [in] kernel indirect access flags
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelGetIndirectAccess(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
ze_kernel_indirect_access_flags_t* pFlags ///< [out] query result for kernel indirect access flags.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelGetSourceAttributes(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
uint32_t* pSize, ///< [in,out] pointer to size of string in bytes, including
///< null-terminating character.
char** pString ///< [in,out][optional] pointer to application-managed character array
///< (string data).
///< If NULL, the string length of the kernel source attributes, including
///< a null-terminating character, is returned in pSize. Otherwise, pString
///< must point to valid application memory that is greater than or equal
///< to *pSize bytes in length, and on return the pointed-to string will
///< contain a space-separated list of kernel source attributes. Note: This
///< API was originally intended to ship with a char *pString, however this
///< typo was introduced. Thus the API has to stay this way for backwards
///< compatible reasons. It can be corrected in v2.0. Suggestion is to
///< create your own char *pString and then pass to this API with &pString.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelSetCacheConfig(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
ze_cache_config_flags_t flags ///< [in] cache configuration.
///< must be 0 (default configuration) or a valid combination of ::ze_cache_config_flag_t.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelGetProperties(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
ze_kernel_properties_t* pKernelProperties ///< [in,out] query result for kernel properties.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelGetName(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
size_t* pSize, ///< [in,out] size of kernel name string, including null terminator, in
///< bytes.
char* pName ///< [in,out][optional] char pointer to kernel name.
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendLaunchKernel(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
const ze_group_count_t* pLaunchFuncArgs, ///< [in] thread group launch arguments
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendLaunchKernelWithParameters(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
const ze_group_count_t* pGroupCounts, ///< [in] thread group launch arguments
const void * pNext, ///< [in][optional] additional parameters passed to the function
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendLaunchKernelWithArguments(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
const ze_group_count_t groupCounts, ///< [in] thread group counts
const ze_group_size_t groupSizes, ///< [in] thread group sizes
void ** pArguments, ///< [in]pointer to an array of pointers
const void * pNext, ///< [in][optional] additional extensions passed to the function
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendLaunchCooperativeKernel(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
const ze_group_count_t* pLaunchFuncArgs, ///< [in] thread group launch arguments
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendLaunchKernelIndirect(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
const ze_group_count_t* pLaunchArgumentsBuffer, ///< [in] pointer to device buffer that will contain thread group launch
///< arguments
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendLaunchMultipleKernelsIndirect(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint32_t numKernels, ///< [in] maximum number of kernels to launch
ze_kernel_handle_t* phKernels, ///< [in][range(0, numKernels)] handles of the kernel objects
const uint32_t* pCountBuffer, ///< [in] pointer to device memory location that will contain the actual
///< number of kernels to launch; value must be less than or equal to
///< numKernels
const ze_group_count_t* pLaunchArgumentsBuffer, ///< [in][range(0, numKernels)] pointer to device buffer that will contain
///< a contiguous array of thread group launch arguments
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeContextMakeMemoryResident(
ze_context_handle_t hContext, ///< [in] handle of context object
ze_device_handle_t hDevice, ///< [in] handle of the device
void* ptr, ///< [in] pointer to memory to make resident
size_t size ///< [in] size in bytes to make resident
);
__zedlllocal ze_result_t ZE_APICALL
zeContextEvictMemory(
ze_context_handle_t hContext, ///< [in] handle of context object
ze_device_handle_t hDevice, ///< [in] handle of the device
void* ptr, ///< [in] pointer to memory to evict
size_t size ///< [in] size in bytes to evict
);
__zedlllocal ze_result_t ZE_APICALL
zeContextMakeImageResident(
ze_context_handle_t hContext, ///< [in] handle of context object
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_image_handle_t hImage ///< [in] handle of image to make resident
);
__zedlllocal ze_result_t ZE_APICALL
zeContextEvictImage(
ze_context_handle_t hContext, ///< [in] handle of context object
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_image_handle_t hImage ///< [in] handle of image to make evict
);
__zedlllocal ze_result_t ZE_APICALL
zeSamplerCreate(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device
const ze_sampler_desc_t* desc, ///< [in] pointer to sampler descriptor
ze_sampler_handle_t* phSampler ///< [out] handle of the sampler
);
__zedlllocal ze_result_t ZE_APICALL
zeSamplerDestroy(
ze_sampler_handle_t hSampler ///< [in][release] handle of the sampler
);
__zedlllocal ze_result_t ZE_APICALL
zeVirtualMemReserve(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* pStart, ///< [in][optional] pointer to start of region to reserve. If nullptr then
///< implementation will choose a start address.
size_t size, ///< [in] size in bytes to reserve; must be page aligned.
void** pptr ///< [out] pointer to virtual reservation.
);
__zedlllocal ze_result_t ZE_APICALL
zeVirtualMemFree(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr, ///< [in] pointer to start of region to free.
size_t size ///< [in] size in bytes to free; must be page aligned.
);
__zedlllocal ze_result_t ZE_APICALL
zeVirtualMemQueryPageSize(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device object
size_t size, ///< [in] unaligned allocation size in bytes
size_t* pagesize ///< [out] pointer to page size to use for start address and size
///< alignments.
);
__zedlllocal ze_result_t ZE_APICALL
zePhysicalMemCreate(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device object, can be `nullptr` if creating
///< physical host memory.
ze_physical_mem_desc_t* desc, ///< [in] pointer to physical memory descriptor.
ze_physical_mem_handle_t* phPhysicalMemory ///< [out] pointer to handle of physical memory object created
);
__zedlllocal ze_result_t ZE_APICALL
zePhysicalMemDestroy(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_physical_mem_handle_t hPhysicalMemory ///< [in][release] handle of physical memory object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeVirtualMemMap(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr, ///< [in] pointer to start of virtual address range to map.
size_t size, ///< [in] size in bytes of virtual address range to map; must be page
///< aligned.
ze_physical_mem_handle_t hPhysicalMemory, ///< [in] handle to physical memory object.
size_t offset, ///< [in] offset into physical memory allocation object; must be page
///< aligned.
ze_memory_access_attribute_t access ///< [in] specifies page access attributes to apply to the virtual address
///< range.
);
__zedlllocal ze_result_t ZE_APICALL
zeVirtualMemUnmap(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr, ///< [in] pointer to start of region to unmap.
size_t size ///< [in] size in bytes to unmap; must be page aligned.
);
__zedlllocal ze_result_t ZE_APICALL
zeVirtualMemSetAccessAttribute(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr, ///< [in] pointer to start of reserved virtual address region.
size_t size, ///< [in] size in bytes; must be page aligned.
ze_memory_access_attribute_t access ///< [in] specifies page access attributes to apply to the virtual address
///< range.
);
__zedlllocal ze_result_t ZE_APICALL
zeVirtualMemGetAccessAttribute(
ze_context_handle_t hContext, ///< [in] handle of the context object
const void* ptr, ///< [in] pointer to start of virtual address region for query.
size_t size, ///< [in] size in bytes; must be page aligned.
ze_memory_access_attribute_t* access, ///< [out] query result for page access attribute.
size_t* outSize ///< [out] query result for size of virtual address range, starting at ptr,
///< that shares same access attribute.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelSetGlobalOffsetExp(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
uint32_t offsetX, ///< [in] global offset for X dimension to use for this kernel
uint32_t offsetY, ///< [in] global offset for Y dimension to use for this kernel
uint32_t offsetZ ///< [in] global offset for Z dimension to use for this kernel
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelGetBinaryExp(
ze_kernel_handle_t hKernel, ///< [in] Kernel handle.
size_t* pSize, ///< [in,out] pointer to variable with size of GEN ISA binary.
uint8_t* pKernelBinary ///< [in,out] pointer to storage area for GEN ISA binary function.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceImportExternalSemaphoreExt(
ze_device_handle_t hDevice, ///< [in] The device handle.
const ze_external_semaphore_ext_desc_t* desc, ///< [in] The pointer to external semaphore descriptor.
ze_external_semaphore_ext_handle_t* phSemaphore ///< [out] The handle of the external semaphore imported.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceReleaseExternalSemaphoreExt(
ze_external_semaphore_ext_handle_t hSemaphore ///< [in] The handle of the external semaphore.
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendSignalExternalSemaphoreExt(
ze_command_list_handle_t hCommandList, ///< [in] The command list handle.
uint32_t numSemaphores, ///< [in] The number of external semaphores.
ze_external_semaphore_ext_handle_t* phSemaphores, ///< [in][range(0, numSemaphores)] The vector of external semaphore handles
///< to be appended into command list.
ze_external_semaphore_signal_params_ext_t* signalParams,///< [in] Signal parameters.
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendWaitExternalSemaphoreExt(
ze_command_list_handle_t hCommandList, ///< [in] The command list handle.
uint32_t numSemaphores, ///< [in] The number of external semaphores.
ze_external_semaphore_ext_handle_t* phSemaphores, ///< [in] [range(0,numSemaphores)] The vector of external semaphore handles
///< to append into command list.
ze_external_semaphore_wait_params_ext_t* waitParams,///< [in] Wait parameters.
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderCreateExt(
ze_driver_handle_t hDriver, ///< [in] handle of driver object
const ze_rtas_builder_ext_desc_t* pDescriptor, ///< [in] pointer to builder descriptor
ze_rtas_builder_ext_handle_t* phBuilder ///< [out] handle of builder object
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderGetBuildPropertiesExt(
ze_rtas_builder_ext_handle_t hBuilder, ///< [in] handle of builder object
const ze_rtas_builder_build_op_ext_desc_t* pBuildOpDescriptor, ///< [in] pointer to build operation descriptor
ze_rtas_builder_ext_properties_t* pProperties ///< [in,out] query result for builder properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDriverRTASFormatCompatibilityCheckExt(
ze_driver_handle_t hDriver, ///< [in] handle of driver object
ze_rtas_format_ext_t rtasFormatA, ///< [in] operand A
ze_rtas_format_ext_t rtasFormatB ///< [in] operand B
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderBuildExt(
ze_rtas_builder_ext_handle_t hBuilder, ///< [in] handle of builder object
const ze_rtas_builder_build_op_ext_desc_t* pBuildOpDescriptor, ///< [in] pointer to build operation descriptor
void* pScratchBuffer, ///< [in][range(0, `scratchBufferSizeBytes`)] scratch buffer to be used
///< during acceleration structure construction
size_t scratchBufferSizeBytes, ///< [in] size of scratch buffer, in bytes
void* pRtasBuffer, ///< [in] pointer to destination buffer
size_t rtasBufferSizeBytes, ///< [in] destination buffer size, in bytes
ze_rtas_parallel_operation_ext_handle_t hParallelOperation, ///< [in][optional] handle to parallel operation object
void* pBuildUserPtr, ///< [in][optional] pointer passed to callbacks
ze_rtas_aabb_ext_t* pBounds, ///< [in,out][optional] pointer to destination address for acceleration
///< structure bounds
size_t* pRtasBufferSizeBytes ///< [out][optional] updated acceleration structure size requirement, in
///< bytes
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderCommandListAppendCopyExt(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
void* dstptr, ///< [in] pointer to destination in device memory to copy the ray tracing
///< acceleration structure to
const void* srcptr, ///< [in] pointer to a valid source ray tracing acceleration structure in
///< host memory to copy from
size_t size, ///< [in] size in bytes to copy
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderDestroyExt(
ze_rtas_builder_ext_handle_t hBuilder ///< [in][release] handle of builder object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASParallelOperationCreateExt(
ze_driver_handle_t hDriver, ///< [in] handle of driver object
ze_rtas_parallel_operation_ext_handle_t* phParallelOperation///< [out] handle of parallel operation object
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASParallelOperationGetPropertiesExt(
ze_rtas_parallel_operation_ext_handle_t hParallelOperation, ///< [in] handle of parallel operation object
ze_rtas_parallel_operation_ext_properties_t* pProperties///< [in,out] query result for parallel operation properties
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASParallelOperationJoinExt(
ze_rtas_parallel_operation_ext_handle_t hParallelOperation ///< [in] handle of parallel operation object
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASParallelOperationDestroyExt(
ze_rtas_parallel_operation_ext_handle_t hParallelOperation ///< [in][release] handle of parallel operation object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetVectorWidthPropertiesExt(
ze_device_handle_t hDevice, ///< [in] handle of the device
uint32_t* pCount, ///< [in,out] pointer to the number of vector width properties.
///< if count is zero, then the driver shall update the value with the
///< total number of vector width properties available.
///< if count is greater than the number of vector width properties
///< available, then the driver shall update the value with the correct
///< number of vector width properties available.
ze_device_vector_width_properties_ext_t* pVectorWidthProperties ///< [in,out][optional][range(0, *pCount)] array of vector width properties.
///< if count is less than the number of properties available, then the
///< driver will return only the number requested.
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelGetAllocationPropertiesExp(
ze_kernel_handle_t hKernel, ///< [in] Kernel handle.
uint32_t* pCount, ///< [in,out] pointer to the number of kernel allocation properties.
///< if count is zero, then the driver shall update the value with the
///< total number of kernel allocation properties available.
///< if count is greater than the number of kernel allocation properties
///< available, then the driver shall update the value with the correct
///< number of kernel allocation properties.
ze_kernel_allocation_exp_properties_t* pAllocationProperties///< [in,out][optional][range(0, *pCount)] array of kernel allocation properties.
///< if count is less than the number of kernel allocation properties
///< available, then driver shall only retrieve that number of kernel
///< allocation properties.
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceReserveCacheExt(
ze_device_handle_t hDevice, ///< [in] handle of the device object
size_t cacheLevel, ///< [in] cache level where application want to reserve. If zero, then the
///< driver shall default to last level of cache and attempt to reserve in
///< that cache.
size_t cacheReservationSize ///< [in] value for reserving size, in bytes. If zero, then the driver
///< shall remove prior reservation
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceSetCacheAdviceExt(
ze_device_handle_t hDevice, ///< [in] handle of the device object
void* ptr, ///< [in] memory pointer to query
size_t regionSize, ///< [in] region size, in pages
ze_cache_ext_region_t cacheRegion ///< [in] reservation region
);
__zedlllocal ze_result_t ZE_APICALL
zeEventQueryTimestampsExp(
ze_event_handle_t hEvent, ///< [in] handle of the event
ze_device_handle_t hDevice, ///< [in] handle of the device to query
uint32_t* pCount, ///< [in,out] pointer to the number of timestamp results.
///< if count is zero, then the driver shall update the value with the
///< total number of timestamps available.
///< if count is greater than the number of timestamps available, then the
///< driver shall update the value with the correct number of timestamps available.
ze_kernel_timestamp_result_t* pTimestamps ///< [in,out][optional][range(0, *pCount)] array of timestamp results.
///< if count is less than the number of timestamps available, then driver
///< shall only retrieve that number of timestamps.
);
__zedlllocal ze_result_t ZE_APICALL
zeImageGetMemoryPropertiesExp(
ze_image_handle_t hImage, ///< [in] handle of image object
ze_image_memory_properties_exp_t* pMemoryProperties ///< [in,out] query result for image memory properties.
);
__zedlllocal ze_result_t ZE_APICALL
zeImageViewCreateExt(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device
const ze_image_desc_t* desc, ///< [in] pointer to image descriptor
ze_image_handle_t hImage, ///< [in] handle of image object to create view from
ze_image_handle_t* phImageView ///< [out] pointer to handle of image object created for view
);
__zedlllocal ze_result_t ZE_APICALL
zeImageViewCreateExp(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device
const ze_image_desc_t* desc, ///< [in] pointer to image descriptor
ze_image_handle_t hImage, ///< [in] handle of image object to create view from
ze_image_handle_t* phImageView ///< [out] pointer to handle of image object created for view
);
__zedlllocal ze_result_t ZE_APICALL
zeKernelSchedulingHintExp(
ze_kernel_handle_t hKernel, ///< [in] handle of the kernel object
ze_scheduling_hint_exp_desc_t* pHint ///< [in] pointer to kernel scheduling hint descriptor
);
__zedlllocal ze_result_t ZE_APICALL
zeDevicePciGetPropertiesExt(
ze_device_handle_t hDevice, ///< [in] handle of the device object.
ze_pci_ext_properties_t* pPciProperties ///< [in,out] returns the PCI properties of the device.
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendImageCopyToMemoryExt(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
void* dstptr, ///< [in] pointer to destination memory to copy to
ze_image_handle_t hSrcImage, ///< [in] handle of source image to copy from
const ze_image_region_t* pSrcRegion, ///< [in][optional] source region descriptor
uint32_t destRowPitch, ///< [in] size in bytes of the 1D slice of the 2D region of a 2D or 3D
///< image or each image of a 1D or 2D image array being written
uint32_t destSlicePitch, ///< [in] size in bytes of the 2D slice of the 3D region of a 3D image or
///< each image of a 1D or 2D image array being written
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListAppendImageCopyFromMemoryExt(
ze_command_list_handle_t hCommandList, ///< [in] handle of command list
ze_image_handle_t hDstImage, ///< [in] handle of destination image to copy to
const void* srcptr, ///< [in] pointer to source memory to copy from
const ze_image_region_t* pDstRegion, ///< [in][optional] destination region descriptor
uint32_t srcRowPitch, ///< [in] size in bytes of the 1D slice of the 2D region of a 2D or 3D
///< image or each image of a 1D or 2D image array being read
uint32_t srcSlicePitch, ///< [in] size in bytes of the 2D slice of the 3D region of a 3D image or
///< each image of a 1D or 2D image array being read
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before launching; must be 0
///< if `nullptr == phWaitEvents`
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeImageGetAllocPropertiesExt(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_image_handle_t hImage, ///< [in] handle of image object to query
ze_image_allocation_ext_properties_t* pImageAllocProperties ///< [in,out] query result for image allocation properties
);
__zedlllocal ze_result_t ZE_APICALL
zeModuleInspectLinkageExt(
ze_linkage_inspection_ext_desc_t* pInspectDesc, ///< [in] pointer to linkage inspection descriptor structure.
uint32_t numModules, ///< [in] number of modules to be inspected pointed to by phModules.
ze_module_handle_t* phModules, ///< [in][range(0, numModules)] pointer to an array of modules to be
///< inspected for import dependencies.
ze_module_build_log_handle_t* phLog ///< [out] pointer to handle of linkage inspection log. Log object will
///< contain separate lists of imports, un-resolvable imports, and exports.
);
__zedlllocal ze_result_t ZE_APICALL
zeMemFreeExt(
ze_context_handle_t hContext, ///< [in] handle of the context object
const ze_memory_free_ext_desc_t* pMemFreeDesc, ///< [in] pointer to memory free descriptor
void* ptr ///< [in][release] pointer to memory to free
);
__zedlllocal ze_result_t ZE_APICALL
zeFabricVertexGetExp(
ze_driver_handle_t hDriver, ///< [in] handle of the driver instance
uint32_t* pCount, ///< [in,out] pointer to the number of fabric vertices.
///< if count is zero, then the driver shall update the value with the
///< total number of fabric vertices available.
///< if count is greater than the number of fabric vertices available, then
///< the driver shall update the value with the correct number of fabric
///< vertices available.
ze_fabric_vertex_handle_t* phVertices ///< [in,out][optional][range(0, *pCount)] array of handle of fabric vertices.
///< if count is less than the number of fabric vertices available, then
///< driver shall only retrieve that number of fabric vertices.
);
__zedlllocal ze_result_t ZE_APICALL
zeFabricVertexGetSubVerticesExp(
ze_fabric_vertex_handle_t hVertex, ///< [in] handle of the fabric vertex object
uint32_t* pCount, ///< [in,out] pointer to the number of sub-vertices.
///< if count is zero, then the driver shall update the value with the
///< total number of sub-vertices available.
///< if count is greater than the number of sub-vertices available, then
///< the driver shall update the value with the correct number of
///< sub-vertices available.
ze_fabric_vertex_handle_t* phSubvertices ///< [in,out][optional][range(0, *pCount)] array of handle of sub-vertices.
///< if count is less than the number of sub-vertices available, then
///< driver shall only retrieve that number of sub-vertices.
);
__zedlllocal ze_result_t ZE_APICALL
zeFabricVertexGetPropertiesExp(
ze_fabric_vertex_handle_t hVertex, ///< [in] handle of the fabric vertex
ze_fabric_vertex_exp_properties_t* pVertexProperties///< [in,out] query result for fabric vertex properties
);
__zedlllocal ze_result_t ZE_APICALL
zeFabricVertexGetDeviceExp(
ze_fabric_vertex_handle_t hVertex, ///< [in] handle of the fabric vertex
ze_device_handle_t* phDevice ///< [out] device handle corresponding to fabric vertex
);
__zedlllocal ze_result_t ZE_APICALL
zeDeviceGetFabricVertexExp(
ze_device_handle_t hDevice, ///< [in] handle of the device
ze_fabric_vertex_handle_t* phVertex ///< [out] fabric vertex handle corresponding to device
);
__zedlllocal ze_result_t ZE_APICALL
zeFabricEdgeGetExp(
ze_fabric_vertex_handle_t hVertexA, ///< [in] handle of first fabric vertex instance
ze_fabric_vertex_handle_t hVertexB, ///< [in] handle of second fabric vertex instance
uint32_t* pCount, ///< [in,out] pointer to the number of fabric edges.
///< if count is zero, then the driver shall update the value with the
///< total number of fabric edges available.
///< if count is greater than the number of fabric edges available, then
///< the driver shall update the value with the correct number of fabric
///< edges available.
ze_fabric_edge_handle_t* phEdges ///< [in,out][optional][range(0, *pCount)] array of handle of fabric edges.
///< if count is less than the number of fabric edges available, then
///< driver shall only retrieve that number of fabric edges.
);
__zedlllocal ze_result_t ZE_APICALL
zeFabricEdgeGetVerticesExp(
ze_fabric_edge_handle_t hEdge, ///< [in] handle of the fabric edge instance
ze_fabric_vertex_handle_t* phVertexA, ///< [out] fabric vertex connected to one end of the given fabric edge.
ze_fabric_vertex_handle_t* phVertexB ///< [out] fabric vertex connected to other end of the given fabric edge.
);
__zedlllocal ze_result_t ZE_APICALL
zeFabricEdgeGetPropertiesExp(
ze_fabric_edge_handle_t hEdge, ///< [in] handle of the fabric edge
ze_fabric_edge_exp_properties_t* pEdgeProperties///< [in,out] query result for fabric edge properties
);
__zedlllocal ze_result_t ZE_APICALL
zeEventQueryKernelTimestampsExt(
ze_event_handle_t hEvent, ///< [in] handle of the event
ze_device_handle_t hDevice, ///< [in] handle of the device to query
uint32_t* pCount, ///< [in,out] pointer to the number of event packets available.
///< - This value is implementation specific.
///< - if `*pCount` is zero, then the driver shall update the value with
///< the total number of event packets available.
///< - if `*pCount` is greater than the number of event packets
///< available, the driver shall update the value with the correct value.
///< - Buffer(s) for query results must be sized by the application to
///< accommodate a minimum of `*pCount` elements.
ze_event_query_kernel_timestamps_results_ext_properties_t* pResults ///< [in,out][optional][range(0, *pCount)] pointer to event query
///< properties structure(s).
///< - This parameter may be null when `*pCount` is zero.
///< - if `*pCount` is less than the number of event packets available,
///< the driver may only update `*pCount` elements, starting at element zero.
///< - if `*pCount` is greater than the number of event packets
///< available, the driver may only update the valid elements.
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderCreateExp(
ze_driver_handle_t hDriver, ///< [in] handle of driver object
const ze_rtas_builder_exp_desc_t* pDescriptor, ///< [in] pointer to builder descriptor
ze_rtas_builder_exp_handle_t* phBuilder ///< [out] handle of builder object
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderGetBuildPropertiesExp(
ze_rtas_builder_exp_handle_t hBuilder, ///< [in] handle of builder object
const ze_rtas_builder_build_op_exp_desc_t* pBuildOpDescriptor, ///< [in] pointer to build operation descriptor
ze_rtas_builder_exp_properties_t* pProperties ///< [in,out] query result for builder properties
);
__zedlllocal ze_result_t ZE_APICALL
zeDriverRTASFormatCompatibilityCheckExp(
ze_driver_handle_t hDriver, ///< [in] handle of driver object
ze_rtas_format_exp_t rtasFormatA, ///< [in] operand A
ze_rtas_format_exp_t rtasFormatB ///< [in] operand B
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderBuildExp(
ze_rtas_builder_exp_handle_t hBuilder, ///< [in] handle of builder object
const ze_rtas_builder_build_op_exp_desc_t* pBuildOpDescriptor, ///< [in] pointer to build operation descriptor
void* pScratchBuffer, ///< [in][range(0, `scratchBufferSizeBytes`)] scratch buffer to be used
///< during acceleration structure construction
size_t scratchBufferSizeBytes, ///< [in] size of scratch buffer, in bytes
void* pRtasBuffer, ///< [in] pointer to destination buffer
size_t rtasBufferSizeBytes, ///< [in] destination buffer size, in bytes
ze_rtas_parallel_operation_exp_handle_t hParallelOperation, ///< [in][optional] handle to parallel operation object
void* pBuildUserPtr, ///< [in][optional] pointer passed to callbacks
ze_rtas_aabb_exp_t* pBounds, ///< [in,out][optional] pointer to destination address for acceleration
///< structure bounds
size_t* pRtasBufferSizeBytes ///< [out][optional] updated acceleration structure size requirement, in
///< bytes
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASBuilderDestroyExp(
ze_rtas_builder_exp_handle_t hBuilder ///< [in][release] handle of builder object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASParallelOperationCreateExp(
ze_driver_handle_t hDriver, ///< [in] handle of driver object
ze_rtas_parallel_operation_exp_handle_t* phParallelOperation///< [out] handle of parallel operation object
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASParallelOperationGetPropertiesExp(
ze_rtas_parallel_operation_exp_handle_t hParallelOperation, ///< [in] handle of parallel operation object
ze_rtas_parallel_operation_exp_properties_t* pProperties///< [in,out] query result for parallel operation properties
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASParallelOperationJoinExp(
ze_rtas_parallel_operation_exp_handle_t hParallelOperation ///< [in] handle of parallel operation object
);
__zedlllocal ze_result_t ZE_APICALL
zeRTASParallelOperationDestroyExp(
ze_rtas_parallel_operation_exp_handle_t hParallelOperation ///< [in][release] handle of parallel operation object to destroy
);
__zedlllocal ze_result_t ZE_APICALL
zeMemGetPitchFor2dImage(
ze_context_handle_t hContext, ///< [in] handle of the context object
ze_device_handle_t hDevice, ///< [in] handle of the device
size_t imageWidth, ///< [in] imageWidth
size_t imageHeight, ///< [in] imageHeight
unsigned int elementSizeInBytes, ///< [in] Element size in bytes
size_t * rowPitch ///< [out] rowPitch
);
__zedlllocal ze_result_t ZE_APICALL
zeImageGetDeviceOffsetExp(
ze_image_handle_t hImage, ///< [in] handle of the image
uint64_t* pDeviceOffset ///< [out] bindless device offset for image
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListCreateCloneExp(
ze_command_list_handle_t hCommandList, ///< [in] handle to source command list (the command list to clone)
ze_command_list_handle_t* phClonedCommandList ///< [out] pointer to handle of the cloned command list
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListImmediateAppendCommandListsExp(
ze_command_list_handle_t hCommandListImmediate, ///< [in] handle of the immediate command list
uint32_t numCommandLists, ///< [in] number of command lists
ze_command_list_handle_t* phCommandLists, ///< [in][range(0, numCommandLists)] handles of command lists
ze_event_handle_t hSignalEvent, ///< [in][optional] handle of the event to signal on completion
///< - if not null, this event is signaled after the completion of all
///< appended command lists
uint32_t numWaitEvents, ///< [in][optional] number of events to wait on before executing appended
///< command lists; must be 0 if nullptr == phWaitEvents
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before executing appended command lists.
///< - if not null, all wait events must be satisfied prior to the start
///< of any appended command list(s)
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListGetNextCommandIdExp(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
const ze_mutable_command_id_exp_desc_t* desc, ///< [in] pointer to mutable command identifier descriptor
uint64_t* pCommandId ///< [out] pointer to mutable command identifier to be written
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListGetNextCommandIdWithKernelsExp(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
const ze_mutable_command_id_exp_desc_t* desc, ///< [in][out] pointer to mutable command identifier descriptor
uint32_t numKernels, ///< [in][optional] number of entries on phKernels list
ze_kernel_handle_t* phKernels, ///< [in][optional][range(0, numKernels)] list of kernels that user can
///< switch between using ::zeCommandListUpdateMutableCommandKernelsExp
///< call
uint64_t* pCommandId ///< [out] pointer to mutable command identifier to be written
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListUpdateMutableCommandsExp(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
const ze_mutable_commands_exp_desc_t* desc ///< [in] pointer to mutable commands descriptor; multiple descriptors may
///< be chained via `pNext` member
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListUpdateMutableCommandSignalEventExp(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint64_t commandId, ///< [in] command identifier
ze_event_handle_t hSignalEvent ///< [in][optional] handle of the event to signal on completion
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListUpdateMutableCommandWaitEventsExp(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint64_t commandId, ///< [in] command identifier
uint32_t numWaitEvents, ///< [in][optional] the number of wait events
ze_event_handle_t* phWaitEvents ///< [in][optional][range(0, numWaitEvents)] handle of the events to wait
///< on before launching
);
__zedlllocal ze_result_t ZE_APICALL
zeCommandListUpdateMutableCommandKernelsExp(
ze_command_list_handle_t hCommandList, ///< [in] handle of the command list
uint32_t numKernels, ///< [in] the number of kernels to update
uint64_t* pCommandId, ///< [in][range(0, numKernels)] command identifier
ze_kernel_handle_t* phKernels ///< [in][range(0, numKernels)] handle of the kernel for a command
///< identifier to switch to
);
}
#if defined(__cplusplus)
extern "C" {
#endif
__zedlllocal void ZE_APICALL
zeGetGlobalProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetGlobalProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetRTASBuilderProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetRTASBuilderProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetRTASBuilderExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetRTASBuilderExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetRTASParallelOperationProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetRTASParallelOperationProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetRTASParallelOperationExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetRTASParallelOperationExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetDriverProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetDriverProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetDriverExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetDriverExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetDeviceProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetDeviceProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetDeviceExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetDeviceExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetContextProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetContextProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetCommandQueueProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetCommandQueueProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetCommandListProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetCommandListProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetCommandListExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetCommandListExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetEventProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetEventProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetEventExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetEventExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetEventPoolProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetEventPoolProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetFenceProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetFenceProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetImageProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetImageProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetImageExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetImageExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetKernelProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetKernelProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetKernelExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetKernelExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetMemProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetMemProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetMemExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetMemExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetModuleProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetModuleProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetModuleBuildLogProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetModuleBuildLogProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetPhysicalMemProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetPhysicalMemProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetSamplerProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetSamplerProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetVirtualMemProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetVirtualMemProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetFabricEdgeExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetFabricEdgeExpProcAddrTableFromDriver(loader::driver_t *driver);
__zedlllocal void ZE_APICALL
zeGetFabricVertexExpProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zeGetFabricVertexExpProcAddrTableFromDriver(loader::driver_t *driver);
#if defined(__cplusplus)
};
#endif
|