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 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068
|
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge"></meta>
<meta name="copyright" content="(C) Copyright 2005"></meta>
<meta name="DC.rights.owner" content="(C) Copyright 2005"></meta>
<meta name="DC.Type" content="reference"></meta>
<meta name="DC.Title" content="Modules"></meta>
<meta name="DC.Format" content="XHTML"></meta>
<meta name="DC.Identifier" content="modules"></meta>
<link rel="stylesheet" type="text/css" href="../common/formatting/commonltr.css"></link>
<link rel="stylesheet" type="text/css" href="../common/formatting/site.css"></link>
<title>Sanitizer Api :: Compute Sanitizer Documentation</title>
<!--[if lt IE 9]>
<script src="../common/formatting/html5shiv-printshiv.min.js"></script>
<![endif]-->
<script type="text/javascript" charset="utf-8" src="../common/scripts/tynt/tynt.js"></script>
-->
<script src="https://assets.adobedtm.com/5d4962a43b79/c1061d2c5e7b/launch-191c2462b890.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../common/formatting/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../common/formatting/jquery.ba-hashchange.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../common/formatting/jquery.scrollintoview.min.js"></script>
<script type="text/javascript" src="../search/htmlFileList.js"></script>
<script type="text/javascript" src="../search/htmlFileInfoList.js"></script>
<script type="text/javascript" src="../search/nwSearchFnt.min.js"></script>
<script type="text/javascript" src="../search/stemmers/en_stemmer.min.js"></script>
<script type="text/javascript" src="../search/index-1.js"></script>
<script type="text/javascript" src="../search/index-2.js"></script>
<script type="text/javascript" src="../search/index-3.js"></script>
<link rel="canonical" href="https://docs.nvidia.com/compute-sanitizer/SanitizerApi/index.html"></link>
<link rel="stylesheet" type="text/css" href="../common/formatting/qwcode.highlight.css"></link>
</head>
<body>
<header id="header"><span id="company">NVIDIA</span><span id="site-title">Compute Sanitizer Documentation</span><form id="search" method="get" action="search">
<input type="text" name="search-text"></input><fieldset id="search-location">
<legend>Search In:</legend>
<label><input type="radio" name="search-type" value="site"></input>Entire Site</label>
<label><input type="radio" name="search-type" value="document"></input>Just This Document</label></fieldset>
<button type="reset">clear search</button>
<button id="submit" type="submit">search</button></form>
</header>
<div id="site-content">
<nav id="site-nav">
<div class="category closed"><a href="../index.html" title="The root of the site.">Compute Sanitizer
v2024.1.1</a></div>
<div class="category"><a href="index.html" title="Sanitizer Api">Sanitizer Api</a></div>
<ul>
<li>
<div class="section-link"><a href="modules.html#modules">1. Modules</a></div>
<ul>
<li>
<div class="section-link"><a href="modules.html#group__SANITIZER__BARRIER__API">1.1. Sanitizer Barrier API</a></div>
</li>
<li>
<div class="section-link"><a href="modules.html#group__SANITIZER__CALLBACK__API">1.2. Sanitizer Callback API</a></div>
</li>
<li>
<div class="section-link"><a href="modules.html#group__SANITIZER__MEMORY__API">1.3. Sanitizer Memory API</a></div>
</li>
<li>
<div class="section-link"><a href="modules.html#group__SANITIZER__PATCHING__API">1.4. Sanitizer Patching API</a></div>
</li>
<li>
<div class="section-link"><a href="modules.html#group__SANITIZER__RESULT__API">1.5. Sanitizer Result Codes</a></div>
</li>
<li>
<div class="section-link"><a href="modules.html#group__SANITIZER__STREAM__API">1.6. Sanitizer Stream API</a></div>
</li>
</ul>
</li>
<li>
<div class="section-link"><a href="annotated.html#annotated">2. Data Structures</a></div>
<ul>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__BatchMemopData">2.1. Sanitizer_BatchMemopData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__CallbackData">2.2. Sanitizer_CallbackData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__EventData">2.3. Sanitizer_EventData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ExternalMemoryData">2.4. Sanitizer_ExternalMemoryData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__GraphExecData">2.5. Sanitizer_GraphExecData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__GraphLaunchData">2.6. Sanitizer_GraphLaunchData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__GraphNodeLaunchData">2.7. Sanitizer_GraphNodeLaunchData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__LaunchData">2.8. Sanitizer_LaunchData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__MemcpyData">2.9. Sanitizer_MemcpyData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__MemsetData">2.10. Sanitizer_MemsetData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ResourceArrayData">2.11. Sanitizer_ResourceArrayData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ResourceContextData">2.12. Sanitizer_ResourceContextData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ResourceFunctionsLazyLoadedData">2.13. Sanitizer_ResourceFunctionsLazyLoadedData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ResourceMemoryData">2.14. Sanitizer_ResourceMemoryData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ResourceMempoolData">2.15. Sanitizer_ResourceMempoolData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ResourceModuleData">2.16. Sanitizer_ResourceModuleData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ResourceStreamData">2.17. Sanitizer_ResourceStreamData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__ResourceVirtualRange">2.18. Sanitizer_ResourceVirtualRange</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__SynchronizeData">2.19. Sanitizer_SynchronizeData</a></div>
</li>
<li>
<div class="section-link"><a href="annotated.html#structSanitizer__UvmData">2.20. Sanitizer_UvmData</a></div>
</li>
</ul>
</li>
<li>
<div class="section-link"><a href="functions.html#functions">3. Data Fields</a></div>
</li>
<li>
<div class="section-link"><a href="notices-header.html#notices-header">Notices</a></div>
<ul></ul>
</li>
</ul>
</nav>
<div id="resize-nav"></div>
<nav id="search-results">
<h2>Search Results</h2>
<ol></ol>
</nav>
<div id="contents-container">
<div id="breadcrumbs-container">
<div id="breadcrumbs"><a href="index.html" shape="rect">< Previous</a> | <a href="annotated.html" shape="rect">Next ></a></div>
<div id="release-info">Sanitizer Api
-
v2024.1.1
(<a href="https://developer.nvidia.com/cuda-toolkit-archive">older</a>)
-
Last updated April 3, 2024
-
<a href="mailto:devtools@nvidia.com?subject=Compute Sanitizer Documentation Feedback: Sanitizer Api">Send Feedback</a></div>
</div>
<article id="contents">
<div class="topic nested1" id="modules"><a name="modules" shape="rect">
<!-- --></a><h2 class="topictitle2">1. Modules</h2>
<div class="body refbody">
<div class="section">
<p class="p">Here is a list of all modules:</p>
</div>
<div class="section">
<ul class="ul">
<li class="li cpp_specialisation"><a class="xref" href="modules.html#group__SANITIZER__BARRIER__API" shape="rect">Sanitizer Barrier API</a></li>
<li class="li cpp_specialisation"><a class="xref" href="modules.html" shape="rect">Sanitizer Callback API</a></li>
<li class="li cpp_specialisation"><a class="xref" href="modules.html#group__SANITIZER__MEMORY__API" shape="rect">Sanitizer Memory API</a></li>
<li class="li cpp_specialisation"><a class="xref" href="modules.html" shape="rect">Sanitizer Patching API</a></li>
<li class="li cpp_specialisation"><a class="xref" href="modules.html#group__SANITIZER__RESULT__API" shape="rect">Sanitizer Result Codes</a></li>
<li class="li cpp_specialisation"><a class="xref" href="modules.html#group__SANITIZER__STREAM__API" shape="rect">Sanitizer Stream API</a></li>
</ul>
</div>
</div>
<div class="topic reference apiRef apiPackage cppModule" id="group__SANITIZER__BARRIER__API"><a name="group__SANITIZER__BARRIER__API" shape="rect">
<!-- --></a><h3 class="topictitle3 cppModule">1.1. Sanitizer Barrier API</h3>
<div class="section">
<p>Functions, types, and enums that implement the Sanitizer Barrier API. </p>
</div>
<h4 class="fake_sectiontitle member_header">Functions</h4>
<dl class="members">
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__BARRIER__API_1gc8aefc64ba0d4bb0d51330c3a27f7e02" shape="rect">sanitizerGetCudaBarrierCount</a> ( CUfunction<span> </span><span class="keyword keyword apiItemName">kernel</span>, uint32_t*<span> </span><span class="keyword keyword apiItemName">numBarriers</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Get number of CUDA barriers used by a function. </span></dd>
</dl>
<div class="description">
<h4 class="sectiontitle">Functions</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__BARRIER__API_1gc8aefc64ba0d4bb0d51330c3a27f7e02" id="group__SANITIZER__BARRIER__API_1gc8aefc64ba0d4bb0d51330c3a27f7e02" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerGetCudaBarrierCount ( CUfunction<span> </span><span class="keyword keyword apiItemName">kernel</span>, uint32_t*<span> </span><span class="keyword keyword apiItemName">numBarriers</span> ) </span></dt>
<dd class="description">
<div class="section">Get number of CUDA barriers used by a function. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">kernel</span></tt></dt>
<dd>CUDA function </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">numBarriers</span></tt></dt>
<dd>Number of CUDA barriers in the input CUDA function </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>The module where <tt class="ph tt code">kernel</tt> resides must have been instrumented using <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a> prior to calling this function. This function is only available for modules built with nvcc 11.2 or newer, it will return
0 otherwise.
</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
</dl>
</div>
</div>
<div class="topic reference apiRef apiPackage cppModule" id="group__SANITIZER__CALLBACK__API"><a name="group__SANITIZER__CALLBACK__API" shape="rect">
<!-- --></a><h3 class="topictitle3 cppModule">1.2. Sanitizer Callback API</h3>
<div class="section">
<p>Functions, types, and enums that implement the Sanitizer Callback API. </p>
</div>
<h4 class="fake_sectiontitle member_header">Classes</h4>
<dl class="members">
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__BatchMemopData" title="Data passed into a batch memop callback function." shape="rect">Sanitizer_BatchMemopData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a batch memop callback function. </span><a href="annotated.html#structSanitizer__BatchMemopData" class="link" title="Data passed into a batch memop callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__CallbackData" title="Data passed into a runtime or driver API callback function." shape="rect">Sanitizer_CallbackData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a runtime or driver API callback function. </span><a href="annotated.html#structSanitizer__CallbackData" class="link" title="Data passed into a runtime or driver API callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__EventData" title="Data passed into an event callback function." shape="rect">Sanitizer_EventData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into an event callback function. </span><a href="annotated.html#structSanitizer__EventData" class="link" title="Data passed into an event callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ExternalMemoryData" title="Data passed into an external memory callback function." shape="rect">Sanitizer_ExternalMemoryData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into an external memory callback function. </span><a href="annotated.html#structSanitizer__ExternalMemoryData" class="link" title="Data passed into an external memory callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__GraphExecData" title="Data passed into a graphexec creation callback function." shape="rect">Sanitizer_GraphExecData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a graphexec creation callback function. </span><a href="annotated.html#structSanitizer__GraphExecData" class="link" title="Data passed into a graphexec creation callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__GraphLaunchData" title="Data passed into a graph launch callback function." shape="rect">Sanitizer_GraphLaunchData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a graph launch callback function. </span><a href="annotated.html#structSanitizer__GraphLaunchData" class="link" title="Data passed into a graph launch callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__GraphNodeLaunchData" title="Data passed into a graph node launch callback function." shape="rect">Sanitizer_GraphNodeLaunchData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a graph node launch callback function. </span><a href="annotated.html#structSanitizer__GraphNodeLaunchData" class="link" title="Data passed into a graph node launch callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__LaunchData" title="Data passed into a launch callback function." shape="rect">Sanitizer_LaunchData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a launch callback function. </span><a href="annotated.html#structSanitizer__LaunchData" class="link" title="Data passed into a launch callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__MemcpyData" title="Data passed into a memcpy callback function." shape="rect">Sanitizer_MemcpyData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a memcpy callback function. </span><a href="annotated.html#structSanitizer__MemcpyData" class="link" title="Data passed into a memcpy callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__MemsetData" title="Data passed into a memset callback function." shape="rect">Sanitizer_MemsetData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a memset callback function. </span><a href="annotated.html#structSanitizer__MemsetData" class="link" title="Data passed into a memset callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ResourceArrayData" title="Data passed into a CUDA array callback function." shape="rect">Sanitizer_ResourceArrayData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a CUDA array callback function. </span><a href="annotated.html#structSanitizer__ResourceArrayData" class="link" title="Data passed into a CUDA array callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ResourceContextData" title="Data passed into a context resource callback function." shape="rect">Sanitizer_ResourceContextData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a context resource callback function. </span><a href="annotated.html#structSanitizer__ResourceContextData" class="link" title="Data passed into a context resource callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ResourceFunctionsLazyLoadedData" title="Data passed into a CUDA function callback function." shape="rect">Sanitizer_ResourceFunctionsLazyLoadedData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a CUDA function callback function. </span><a href="annotated.html#structSanitizer__ResourceFunctionsLazyLoadedData" class="link" title="Data passed into a CUDA function callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ResourceMemoryData" title="Data passed into a memory resource callback function." shape="rect">Sanitizer_ResourceMemoryData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a memory resource callback function. </span><a href="annotated.html#structSanitizer__ResourceMemoryData" class="link" title="Data passed into a memory resource callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ResourceMempoolData" title="Data passed into a mempool resource callback function." shape="rect">Sanitizer_ResourceMempoolData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a mempool resource callback function. </span><a href="annotated.html#structSanitizer__ResourceMempoolData" class="link" title="Data passed into a mempool resource callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ResourceModuleData" title="Data passed into a module resource callback function." shape="rect">Sanitizer_ResourceModuleData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a module resource callback function. </span><a href="annotated.html#structSanitizer__ResourceModuleData" class="link" title="Data passed into a module resource callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ResourceStreamData" title="Data passed into a stream resource callback function." shape="rect">Sanitizer_ResourceStreamData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a stream resource callback function. </span><a href="annotated.html#structSanitizer__ResourceStreamData" class="link" title="Data passed into a stream resource callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__ResourceVirtualRange" title="Data passed into a VA reservation callback function." shape="rect">Sanitizer_ResourceVirtualRange</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a VA reservation callback function. </span><a href="annotated.html#structSanitizer__ResourceVirtualRange" class="link" title="Data passed into a VA reservation callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__SynchronizeData" title="Data passed into a synchronization callback function." shape="rect">Sanitizer_SynchronizeData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a synchronization callback function. </span><a href="annotated.html#structSanitizer__SynchronizeData" class="link" title="Data passed into a synchronization callback function." shape="rect"></a></dd>
<dt><span class="member_type">struct </span><span class="member_name">
<div><a class="link" href="annotated.html#structSanitizer__UvmData" title="Data passed into a managed memory callback function." shape="rect">Sanitizer_UvmData</a></div></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Data passed into a managed memory callback function. </span><a href="annotated.html#structSanitizer__UvmData" class="link" title="Data passed into a managed memory callback function." shape="rect"></a></dd>
</dl>
<h4 class="fake_sectiontitle member_header">Typedefs</h4>
<dl class="members">
<dt><span class="member_long_type">typedef
void(SANITIZERAPI*
</span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1gf031ccd4dcc013ab017d9ee1032858c4" shape="rect">Sanitizer_CallbackFunc</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">Sanitizer_CallbackDomain domain</span>, <span> </span><span class="keyword keyword apiItemName">Sanitizer_CallbackId cbid</span>, const void*
<span> </span><span class="keyword keyword apiItemName">cbdata</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a callback. </span></dd>
<dt><span class="member_type">typedef uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g6e4655fe27c8ee6f85661350bfbc7bd7" shape="rect">Sanitizer_CallbackId</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback ID. </span></dd>
<dt><span class="member_long_type">typedef Sanitizer_Subscriber_st * </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" shape="rect">Sanitizer_SubscriberHandle</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">A callback subscriber. </span></dd>
</dl>
<h4 class="fake_sectiontitle member_header">Enumerations</h4>
<dl class="members">
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g0bc24cc0af4c2b8f9c50355c1c1d36ae" shape="rect">Sanitizer_ApiCallbackSite</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Specifies the point in an API call that a callback is issued. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gab53af117ae98aa6acf0a6b4dfb71cfa" shape="rect">Sanitizer_BatchMemopType</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Specifies the type of batch memory operation. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gdf767501dec0e4e2deb55b0c76d35f5f" shape="rect">Sanitizer_CallackIdSync</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for synchronization domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" shape="rect">Sanitizer_CallbackDomain</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback domains. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1ge089f8eea1aee2408f559e304d9d0ffa" shape="rect">Sanitizer_CallbackIdBatchMemop</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for batch memop domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gc64a40e719db73937178eba5ffea9b67" shape="rect">Sanitizer_CallbackIdEvents</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for events domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gfe4f153f58660f80e6dd95e874ccd72a" shape="rect">Sanitizer_CallbackIdExternalMemory</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for external memory domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g65ad906ecc3006f2b49f63d8b09f38fd" shape="rect">Sanitizer_CallbackIdGraphs</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for graphs domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g023cd56b97f1231cb0c4d11b4f8f95d4" shape="rect">Sanitizer_CallbackIdLaunch</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for launch domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g9047997c07890c2fd3136ca731228bd5" shape="rect">Sanitizer_CallbackIdMemcpy</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for memcpy domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g70a5aabab8a7528c5213ee5f535b466c" shape="rect">Sanitizer_CallbackIdMemset</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for memset domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gd447a2768c522f1d2b2a086a47705a49" shape="rect">Sanitizer_CallbackIdResource</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for resource domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gd0dca53274794d63531e7993fb6248a0" shape="rect">Sanitizer_CallbackIdUvm</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Callback IDs for managed memory domain. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g6dd430318fea9a813020c974d07da85e" shape="rect">Sanitizer_MemcpyDirection</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Memcpy direction. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g62d02f306fdb955ab1f5add810c45564" shape="rect">Sanitizer_MemoryVisibility</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Specifies the visibility of an allocation. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gd29155bb34524587a5a42d41be1d3fb2" shape="rect">Sanitizer_ResourceMemoryFlags</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Flags describing a memory allocation. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gc172db1fa20fecca6ac23c2954ae15a1" shape="rect">Sanitizer_ResourceMemoryPermissions</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Permissions for a memory allocation. </span></dd>
</dl>
<h4 class="fake_sectiontitle member_header">Functions</h4>
<dl class="members">
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g333a1254396a7a8ba5f8921d1f65642a" shape="rect">sanitizerEnableAllDomains</a> ( uint32_t<span> </span><span class="keyword keyword apiItemName">enable</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Enable or disable all callbacks in all domains. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g5463cc746520167ff93e22636549b66b" shape="rect">sanitizerEnableCallback</a> ( uint32_t<span> </span><span class="keyword keyword apiItemName">enable</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" title="Callback domains. " shape="rect">Sanitizer_CallbackDomain</a><span> </span><span class="keyword keyword apiItemName">domain</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g6e4655fe27c8ee6f85661350bfbc7bd7" title="Callback ID. " shape="rect">Sanitizer_CallbackId</a><span> </span><span class="keyword keyword apiItemName">cbid</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Enable or disable callbacks for a specific domain and callback ID. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gffda58e1b795d575a0439557ff9f6fa5" shape="rect">sanitizerEnableDomain</a> ( uint32_t<span> </span><span class="keyword keyword apiItemName">enable</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" title="Callback domains. " shape="rect">Sanitizer_CallbackDomain</a><span> </span><span class="keyword keyword apiItemName">domain</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Enable or disable all callbacks for a specific domain. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g631b78eb2d8bef7ac892461cda0eff67" shape="rect">sanitizerGetCallbackState</a> ( uint32_t*<span> </span><span class="keyword keyword apiItemName">enable</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" title="Callback domains. " shape="rect">Sanitizer_CallbackDomain</a><span> </span><span class="keyword keyword apiItemName">domain</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g6e4655fe27c8ee6f85661350bfbc7bd7" title="Callback ID. " shape="rect">Sanitizer_CallbackId</a><span> </span><span class="keyword keyword apiItemName">cbid</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Get the current enabled/disabled state of a callback for a specific domain and function ID. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g2740c794198ce1cae40f02d5bad3ab8b" shape="rect">sanitizerSubscribe</a> ( <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a>*<span> </span><span class="keyword keyword apiItemName">subscriber</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1gf031ccd4dcc013ab017d9ee1032858c4" title="Function type for a callback. " shape="rect">Sanitizer_CallbackFunc</a><span> </span><span class="keyword keyword apiItemName">callback</span>, void*<span> </span><span class="keyword keyword apiItemName">userdata</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Initialize a callback subscriber with a callback function and user data. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g143e5fe94ccaab6559c7af04df01a0e8" shape="rect">sanitizerUnsubscribe</a> ( <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Unregister a callback subscriber. </span></dd>
</dl>
<h4 class="fake_sectiontitle member_header">Variables</h4>
<dl class="members">
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gb535f9480452944a891c80ba054268ba" shape="rect">Sanitizer_BatchMemopData::address</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g3ef9cb88408697511f56effdfeed5da8" shape="rect">Sanitizer_BatchMemopData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gd0b50ad0f897b982a76d9542253fec93" shape="rect">Sanitizer_BatchMemopData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__CALLBACK__API_1gab53af117ae98aa6acf0a6b4dfb71cfa" title="Specifies the type of batch memory operation. " shape="rect">Sanitizer_BatchMemopType</a> </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g874b875cc64512766ed6d8f43fea3afd" shape="rect">Sanitizer_BatchMemopData::type</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g61c24785086fa41e344d54faa076b6d0" shape="rect">Sanitizer_BatchMemopData::value</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUcontext </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g6952454cc861e5a97c40d9e459a90351" shape="rect">Sanitizer_CallbackData::context</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">const
char
* </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gcffbfadfe4c7af894d8e39407595efd2" shape="rect">Sanitizer_CallbackData::functionName</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">const
void
* </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g3866442ee35daa08d5bbd2eeb366f91f" shape="rect">Sanitizer_CallbackData::functionParams</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">const
void
* </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gb523a3af8e202cbbdd706277014041fa" shape="rect">Sanitizer_CallbackData::functionReturnValue</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">const
char
* </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g1ee030118e093f440f953d896ee80be6" shape="rect">Sanitizer_CallbackData::symbolName</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUcontext </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g6da08037d5ae573a39e4f54183a6db35" shape="rect">Sanitizer_EventData::context</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g2f6747e6a89033d27f91d7b72e5599be" shape="rect">Sanitizer_EventData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g96c543b1fdcbd06824271501fc8d1b89" shape="rect">Sanitizer_EventData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g18d1a1ea4c519211469701e18f4c2380" shape="rect">Sanitizer_ExternalMemoryData::address</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUdevice </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g5a59564816fd60a2874024e789fb1d2f" shape="rect">Sanitizer_ExternalMemoryData::device</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUexternalMemory </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g5ffec44a18fbbbf253676057147d8928" shape="rect">Sanitizer_ExternalMemoryData::extMemory</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1ga070c404bc59643510737bb5278432fb" shape="rect">Sanitizer_ExternalMemoryData::size</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g5f9006c60aa1f3b3c68de6974b4c3518" shape="rect">Sanitizer_GraphExecData::containsDeviceGraphLaunches</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUcontext </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g26bf32e11e39a0e9fd7aef54d544b0cc" shape="rect">Sanitizer_GraphExecData::deviceGraphLaunchesContext</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUgraphExec </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gb1a817799b020868a692b5b2d82be2a9" shape="rect">Sanitizer_GraphExecData::graphExec</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gc77f7a54e4953682dcb29ff7bf794914" shape="rect">Sanitizer_GraphExecData::isDeviceLaunch</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUgraphExec </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g6c69e3440ef748c6c5338505f6bb521e" shape="rect">Sanitizer_GraphLaunchData::graphExec</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g27bdfc7058401c7a88e7bf538752c5ab" shape="rect">Sanitizer_GraphLaunchData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g43ba40476321bc1b026eab8e3ef364d1" shape="rect">Sanitizer_GraphLaunchData::isGraphUpload</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g4e19a42decf1a32b5582e4ba19346209" shape="rect">Sanitizer_GraphLaunchData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g72f04317e3ea0b0ba1e62d54c06606ad" shape="rect">Sanitizer_GraphNodeLaunchData::isGraphUpload</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gdf81e4d9627fd5f003f01075878e2a89" shape="rect">Sanitizer_GraphNodeLaunchData::launchId</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type">struct <a href="annotated.html#structSanitizer__ResourceMemoryData" title="Data passed into a memory resource callback function. " shape="rect">Sanitizer_ResourceMemoryData</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1ge334046a272b7c07489c0d80fab9f8b6" shape="rect">Sanitizer_GraphNodeLaunchData::memAllocData</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gda8d9c0a133719825143b35a3e544eea" shape="rect">Sanitizer_GraphNodeLaunchData::memFreeAddress</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type">struct <a href="annotated.html#structSanitizer__MemcpyData" title="Data passed into a memcpy callback function. " shape="rect">Sanitizer_MemcpyData</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1gf2b961a7eae0b73c12f7ec099d4726f6" shape="rect">Sanitizer_GraphNodeLaunchData::memcpyData</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type">struct <a href="annotated.html#structSanitizer__MemsetData" title="Data passed into a memset callback function. " shape="rect">Sanitizer_MemsetData</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1ga931adc0a0129a4490a2c6bb786b8d0f" shape="rect">Sanitizer_GraphNodeLaunchData::memsetData</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUgraphNode </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g86c2a7422b28ed2929f072e3d546b9c3" shape="rect">Sanitizer_GraphNodeLaunchData::node</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUgraphNodeType </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1ge6c93bc5c7a5dc8a5d6ec72a42f87526" shape="rect">Sanitizer_GraphNodeLaunchData::nodeType</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUcontext </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g0f74ceb1522b0d27bb1d38ce41f83d73" shape="rect">Sanitizer_LaunchData::apiContext</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g73236f03601aa99a589d4c46a4a8c19e" shape="rect">Sanitizer_LaunchData::apiStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUdevice </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g54ac0dec13a70e0cb9d1dc3849c40063" shape="rect">Sanitizer_LaunchData::device</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUfunction </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g6ae473df62bfb4cac682ebedaf8627fd" shape="rect">Sanitizer_LaunchData::function</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">const
char
* </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gf217ff198ada2e206aa01e3e2f4aaef8" shape="rect">Sanitizer_LaunchData::functionName</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gb9302cae916c7eaab0c6de268b246e59" shape="rect">Sanitizer_LaunchData::gridId</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gb4c74f8d8eaa10a76a9eb055e02bbfdb" shape="rect">Sanitizer_LaunchData::hApiStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_LaunchHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g57fec3035b443ac0cc7e35908ca53117" shape="rect">Sanitizer_LaunchData::hLaunch</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g07a4addf3473a03f38060b769517bd9e" shape="rect">Sanitizer_LaunchData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUmodule </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g149c3ada82b4937473864e2b27bc5825" shape="rect">Sanitizer_LaunchData::module</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g670de4d81de9ea2c2a2f875281f3d726" shape="rect">Sanitizer_LaunchData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUcontext </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g5f3e2d84df0369cd5bd8c439c2138513" shape="rect">Sanitizer_MemcpyData::apiContext</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g04d5baf46f54fbfbd61818a8b71652ef" shape="rect">Sanitizer_MemcpyData::apiStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type"><a href="modules.html#group__SANITIZER__CALLBACK__API_1g6dd430318fea9a813020c974d07da85e" title="Memcpy direction. " shape="rect">Sanitizer_MemcpyDirection</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1g01d588f3dbd03429170cf7a9c64ecbca" shape="rect">Sanitizer_MemcpyData::direction</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g176afbebea17970c434b9d5a7c1e2eb9" shape="rect">Sanitizer_MemcpyData::dstAddress</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUcontext </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1ga536604f8271c4d7d3c77ced6bb87899" shape="rect">Sanitizer_MemcpyData::dstContext</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g9a4d69875b446d382590721f3e352ab1" shape="rect">Sanitizer_MemcpyData::dstPitch</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gf11d697d3d994de8b25059b1992b3135" shape="rect">Sanitizer_MemcpyData::dstStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gbb1196661652d08050d69aaf618f7459" shape="rect">Sanitizer_MemcpyData::hApiStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g3e5d47e9ca81bbf4192dc9cd4958ca9d" shape="rect">Sanitizer_MemcpyData::hDstStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gbe70ebd1173d6137ca064e66b4b99965" shape="rect">Sanitizer_MemcpyData::hSrcStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gd42ab4aa1a7f1ffbfe4e3787d45141f6" shape="rect">Sanitizer_MemcpyData::isAsync</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g297d5464c98df6630501e117c1262b48" shape="rect">Sanitizer_MemcpyData::size</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gb300021e73a68db7b679bebfc81425e6" shape="rect">Sanitizer_MemcpyData::srcAddress</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gc851b50eb12aa0e38d1bf5e349b5a66b" shape="rect">Sanitizer_MemcpyData::srcPitch</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g5dbf45c2f3f09b40d901628ab557ef48" shape="rect">Sanitizer_MemcpyData::srcStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g9bb9e8fa40bb441864e2620ebb2eb430" shape="rect">Sanitizer_MemcpyData::width</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g86864b17ab8ef4bcbdf9cf27ea86b6a9" shape="rect">Sanitizer_MemsetData::address</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g0246494f29ba1644b2a3abb5ac2d6cee" shape="rect">Sanitizer_MemsetData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g25e97b753473f3e78a76cbe75d66758c" shape="rect">Sanitizer_MemsetData::isAsync</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g568656a07f80c2747dfd6eaf3ac6fa95" shape="rect">Sanitizer_MemsetData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g5fc409e9d272bef19b26b754103152f2" shape="rect">Sanitizer_MemsetData::value</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gdf48f929e8ccaf649688cdfac51b63a2" shape="rect">Sanitizer_MemsetData::width</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUarray </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g6dbe2da80b68f48859499c24d325b9f0" shape="rect">Sanitizer_ResourceArrayData::hArray</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gda45296bad0f62f6df2ca07a7b545794" shape="rect">Sanitizer_ResourceArrayData::width</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUdevice </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gf1b86ab2888f0132953f56bfb63bfb38" shape="rect">Sanitizer_ResourceContextData::device</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">const
CUfunction
* </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g54c88e675e099bc4f01351f871107aab" shape="rect">Sanitizer_ResourceFunctionsLazyLoadedData::functions</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUmodule </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g549f330264682c91331b433868c166fc" shape="rect">Sanitizer_ResourceFunctionsLazyLoadedData::module</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g2fc6eb609d8345b59f58b5469e73e121" shape="rect">Sanitizer_ResourceFunctionsLazyLoadedData::numFunctions</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUcontext </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g306fed61e5fc1aefe907f67b6aeb3c7b" shape="rect">Sanitizer_ResourceMemoryData::context</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUdevice </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gc23e893ab78877ab395678c4dc1bddfa" shape="rect">Sanitizer_ResourceMemoryData::device</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g7bee77cc4075471b0397cf557c843c4a" shape="rect">Sanitizer_ResourceMemoryData::flags</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g9cd401e3148076d3b5cabcdbf54f3f33" shape="rect">Sanitizer_ResourceMemoryData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUmemoryPool </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gbe9335a4874c70f9e8fdc287b8a14a38" shape="rect">Sanitizer_ResourceMemoryData::memoryPool</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint32_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gfa68ea5df21d945ae35162a7573c4d61" shape="rect">Sanitizer_ResourceMemoryData::permissions</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gf33b6cf45e80c06fc9130c719d6e13c7" shape="rect">Sanitizer_ResourceMemoryData::size</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUdevice </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g34ae0e07bbf2f9ae371d132c59138ce0" shape="rect">Sanitizer_ResourceMemoryData::sourceDevice</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gbb146be5d2857f1294a1af6edf28f6f5" shape="rect">Sanitizer_ResourceMemoryData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type"><a href="modules.html#group__SANITIZER__CALLBACK__API_1g62d02f306fdb955ab1f5add810c45564" title="Specifies the visibility of an allocation. " shape="rect">Sanitizer_MemoryVisibility</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1g5838f90e131f6b6761c39986b9b6efd8" shape="rect">Sanitizer_ResourceMemoryData::visibility</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUdevice </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g9d01c7ed7b6d8b3ea539b530393edb43" shape="rect">Sanitizer_ResourceMempoolData::device</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUdevice </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g60c827072502fc8e4aa10c8e8abd8e1b" shape="rect">Sanitizer_ResourceMempoolData::peerDevice</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">size_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g4d94a109dba9f60ed5bae597ea93b2b7" shape="rect">Sanitizer_ResourceModuleData::cubinSize</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUlibrary </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g0f7484826c1b8bb5f2eca75040fd44cc" shape="rect">Sanitizer_ResourceModuleData::library</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUmodule </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g786e3c1a3f4f6d4611f7fa0b4093dca7" shape="rect">Sanitizer_ResourceModuleData::module</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">const
char
* </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g39bce574d2d1e1ef944c1090ce01b09a" shape="rect">Sanitizer_ResourceModuleData::pCubin</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g17058d030f8c196b4a250148c3e2c662" shape="rect">Sanitizer_ResourceStreamData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g9ac109c0cc16da3636538dfcebaeac33" shape="rect">Sanitizer_ResourceStreamData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g80d1ec50b68c93aa0657c833ece83c8e" shape="rect">Sanitizer_ResourceVirtualRange::size</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g1ef3eb36bdce259175dab94c3cee852d" shape="rect">Sanitizer_SynchronizeData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g88f86980a41884a31acac2b04f1d42f9" shape="rect">Sanitizer_SynchronizeData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g1e8e80e5a6533ffea2ca5a435e0827fe" shape="rect">Sanitizer_UvmData::address</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">Sanitizer_StreamHandle </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1g0e5aefe3e911df95c5a4b6f0e227467e" shape="rect">Sanitizer_UvmData::hStream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">CUstream </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1ga2452503ea44bf5b345f230da98b9402" shape="rect">Sanitizer_UvmData::stream</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type"><a href="modules.html#group__SANITIZER__CALLBACK__API_1g62d02f306fdb955ab1f5add810c45564" title="Specifies the visibility of an allocation. " shape="rect">Sanitizer_MemoryVisibility</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1g9c9d131f19f523c3c107ea5ea55f6676" shape="rect">Sanitizer_UvmData::visibility</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type">struct <a href="annotated.html#structSanitizer__ResourceMemoryData" title="Data passed into a memory resource callback function. " shape="rect">Sanitizer_ResourceMemoryData</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1gb77c324ee0c00b852188a048e8402292" shape="rect">memAllocData</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_type">uint64_t </span><span class="member_name"><a href="#group__SANITIZER__CALLBACK__API_1gb14e45e0d7b3921b6e155308a54d7945" shape="rect">memFreeAddress</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type">struct <a href="annotated.html#structSanitizer__MemcpyData" title="Data passed into a memcpy callback function. " shape="rect">Sanitizer_MemcpyData</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1g1da9f79bf2f871d07b357fc7e3da0c95" shape="rect">memcpyData</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
<dt><span class="member_long_type">struct <a href="annotated.html#structSanitizer__MemsetData" title="Data passed into a memset callback function. " shape="rect">Sanitizer_MemsetData</a> </span><span class="member_name_long_type"><a href="#group__SANITIZER__CALLBACK__API_1g47ec542f59cd0f3e8937121c006eefa2" shape="rect">memsetData</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
</dl>
<div class="description">
<h4 class="sectiontitle">Typedefs</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gf031ccd4dcc013ab017d9ee1032858c4" id="group__SANITIZER__CALLBACK__API_1gf031ccd4dcc013ab017d9ee1032858c4" shape="rect">
<!-- --></a><span>
void(SANITIZERAPI*
Sanitizer_CallbackFunc )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">Sanitizer_CallbackDomain domain</span>, <span> </span><span class="keyword keyword apiItemName">Sanitizer_CallbackId cbid</span>, const void*
<span> </span><span class="keyword keyword apiItemName">cbdata</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a callback. Function type for a callback. The type of the data passed to the callback in <tt class="ph tt code">cbdata</tt> depends on the domain. If <tt class="ph tt code">domain</tt> is SANITIZER_CB_DOMAIN_DRIVER_API or SANITIZER_CB_DOMAIN_RUNTIME_API the type of <tt class="ph tt code">cbdata</tt> will be <a class="xref" href="annotated.html#structSanitizer__CallbackData" title="Data passed into a runtime or driver API callback function." shape="rect">Sanitizer_CallbackData</a>. If <tt class="ph tt code">domain</tt> is SANITIZER_CB_DOMAIN_RESOURCE the type of <tt class="ph tt code">cbdata</tt> will be dependent on cbid. Refer to <a class="xref" href="annotated.html#structSanitizer__ResourceContextData" title="Data passed into a context resource callback function." shape="rect">Sanitizer_ResourceContextData</a>, <a class="xref" href="annotated.html#structSanitizer__ResourceStreamData" title="Data passed into a stream resource callback function." shape="rect">Sanitizer_ResourceStreamData</a>, <a class="xref" href="annotated.html#structSanitizer__ResourceModuleData" title="Data passed into a module resource callback function." shape="rect">Sanitizer_ResourceModuleData</a> and <a class="xref" href="modules.html#group__SANITIZER__CALLBACK__API_1gd29155bb34524587a5a42d41be1d3fb2" title="Flags describing a memory allocation." shape="rect">Sanitizer_ResourceMemoryFlags</a> documentations. If <tt class="ph tt code">domain</tt> is SANITIZER_CB_DOMAIN_SYNCHRONIZE the type of <tt class="ph tt code">cbdata</tt> will be <a class="xref" href="annotated.html#structSanitizer__SynchronizeData" title="Data passed into a synchronization callback function." shape="rect">Sanitizer_SynchronizeData</a>. If <tt class="ph tt code">domain</tt> is SANITIZER_CB_DOMAIN_LAUNCH the type of <tt class="ph tt code">cbdata</tt> will be <a class="xref" href="annotated.html#structSanitizer__LaunchData" title="Data passed into a launch callback function." shape="rect">Sanitizer_LaunchData</a>. If <tt class="ph tt code">domain</tt> is SANITIZER_CB_DOMAIN_MEMCPY the type of <tt class="ph tt code">cbdata</tt> will be <a class="xref" href="annotated.html#structSanitizer__MemcpyData" title="Data passed into a memcpy callback function." shape="rect">Sanitizer_MemcpyData</a>. If <tt class="ph tt code">domain</tt> is SANITIZER_CB_DOMAIN_MEMSET the type of <tt class="ph tt code">cbdata</tt> will be <a class="xref" href="annotated.html#structSanitizer__MemsetData" title="Data passed into a memset callback function." shape="rect">Sanitizer_MemsetData</a>. If <tt class="ph tt code">domain</tt> is SANITIZER_CB_DOMAIN_BATCH_MEMOP the type of <tt class="ph tt code">cbdata</tt> will be <a class="xref" href="annotated.html#structSanitizer__BatchMemopData" title="Data passed into a batch memop callback function." shape="rect">Sanitizer_BatchMemopData</a>.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g6e4655fe27c8ee6f85661350bfbc7bd7" id="group__SANITIZER__CALLBACK__API_1g6e4655fe27c8ee6f85661350bfbc7bd7" shape="rect">
<!-- --></a><span>typedef uint32_t Sanitizer_CallbackId</span></dt>
<dd class="description">
<div class="section">
<p>Callback ID. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" id="group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" shape="rect">
<!-- --></a><span>typedef Sanitizer_Subscriber_st * Sanitizer_SubscriberHandle</span></dt>
<dd class="description">
<div class="section">
<p>A callback subscriber. </p>
</div>
</dd>
</dl>
</div>
<div class="description">
<h4 class="sectiontitle">Enumerations</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g0bc24cc0af4c2b8f9c50355c1c1d36ae" id="group__SANITIZER__CALLBACK__API_1g0bc24cc0af4c2b8f9c50355c1c1d36ae" shape="rect">
<!-- --></a><span>enum Sanitizer_ApiCallbackSite</span></dt>
<dd class="description">
<div class="section">
<p>Specifies the point in an API that a callback is issued. This value is communicated to the callback function via Sanitizer_CallbackData::CallbackSize.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_API_ENTER = <span class="ph ph apiData">0</span></span></dt>
<dd>This callback is at API entry. </dd>
<dt><span class="enum-member-name-def">SANITIZER_API_EXIT = <span class="ph ph apiData">1</span></span></dt>
<dd>This callback is at API exit. </dd>
<dt><span class="enum-member-name-def">SANITIZER_API_CBSITE_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gab53af117ae98aa6acf0a6b4dfb71cfa" id="group__SANITIZER__CALLBACK__API_1gab53af117ae98aa6acf0a6b4dfb71cfa" shape="rect">
<!-- --></a><span>enum Sanitizer_BatchMemopType</span></dt>
<dd class="description">
<div class="section">
<p>Specifies the type of batch memory operation reported by a callback in domain SANITIZER_CB_DOMAIN_BATCH_MEMOP. This value
is communicated to the callback function via <a class="xref" href="modules.html#group__SANITIZER__CALLBACK__API_1g874b875cc64512766ed6d8f43fea3afd" shape="rect">Sanitizer_BatchMemopData::type</a>.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_BATCH_MEMOP_TYPE_32B = <span class="ph ph apiData">0</span></span></dt>
<dd>Batch memory operation size is 32 bits. </dd>
<dt><span class="enum-member-name-def">SANITIZER_BATCH_MEMOP_TYPE_64B = <span class="ph ph apiData">1</span></span></dt>
<dd>Batch memory operation size is 64 bits. </dd>
<dt><span class="enum-member-name-def">SANITIZER_BATCH_MEMOP_TYPE_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gdf767501dec0e4e2deb55b0c76d35f5f" id="group__SANITIZER__CALLBACK__API_1gdf767501dec0e4e2deb55b0c76d35f5f" shape="rect">
<!-- --></a><span>enum Sanitizer_CallackIdSync</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_SYNCHRONIZE. This value is communicated to the callback function via
the <tt class="ph tt code">cbid</tt> parameter.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_SYNCHRONIZE_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid synchronize callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_SYNCHRONIZE_STREAM_SYNCHRONIZED = <span class="ph ph apiData">1</span></span></dt>
<dd>Stream synchronization has completed for a given stream. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_SYNCHRONIZE_CONTEXT_SYNCHRONIZED = <span class="ph ph apiData">2</span></span></dt>
<dd>Context synchronization has completed for a given context. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_SYNCHRONIZE_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_SYNCHRONIZE_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" id="group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackDomain</span></dt>
<dd class="description">
<div class="section">
<p>Callback domain. Each domain represents callback points for a group of related API functions or CUDA driver activity. </p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid domain. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_DRIVER_API = <span class="ph ph apiData">1</span></span></dt>
<dd>Domain containing callback points for all driver API functions. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_RUNTIME_API = <span class="ph ph apiData">2</span></span></dt>
<dd>Domain containing callback points for all runtime API functions. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_RESOURCE = <span class="ph ph apiData">3</span></span></dt>
<dd>Domain containing callback points for CUDA resource tracking. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_SYNCHRONIZE = <span class="ph ph apiData">4</span></span></dt>
<dd>Domain containing callback points for CUDA synchronization. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_LAUNCH = <span class="ph ph apiData">5</span></span></dt>
<dd>Domain containing callback points for CUDA grid launches. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_MEMCPY = <span class="ph ph apiData">6</span></span></dt>
<dd>Domain containing callback points for CUDA memcpy operations. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_MEMSET = <span class="ph ph apiData">7</span></span></dt>
<dd>Domain containing callback points for CUDA memset operations. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_BATCH_MEMOP = <span class="ph ph apiData">8</span></span></dt>
<dd>Domain containing callback points for CUDA batch memop operations. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_UVM = <span class="ph ph apiData">9</span></span></dt>
<dd>Domain containing callback points for CUDA managed memory operations. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_GRAPHS = <span class="ph ph apiData">10</span></span></dt>
<dd>Domain containing callback points for CUDA graphs operations. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_EVENTS = <span class="ph ph apiData">11</span></span></dt>
<dd>Domain containing callback points for CUDA events. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_EXTERNAL_MEMORY = <span class="ph ph apiData">12</span></span></dt>
<dd>Domain containing callback points for CUDA external memory. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CB_DOMAIN_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1ge089f8eea1aee2408f559e304d9d0ffa" id="group__SANITIZER__CALLBACK__API_1ge089f8eea1aee2408f559e304d9d0ffa" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdBatchMemop</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_BATCH_MEMOP. This value is communicated to the callback function via
the <tt class="ph tt code">cbid</tt> parameter.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_BATCH_MEMOP_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid batch memop callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_BATCH_MEMOP_WRITE = <span class="ph ph apiData">1</span></span></dt>
<dd>A batch memory operation was initiated. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_BATCH_MEMOP_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_BATCH_MEMOP_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gc64a40e719db73937178eba5ffea9b67" id="group__SANITIZER__CALLBACK__API_1gc64a40e719db73937178eba5ffea9b67" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdEvents</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_EVENTS. This value is communicated to the callback function via the <tt class="ph tt code">cbid</tt> parameter. Available with a driver version of 515 or newer.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_EVENTS_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid event callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EVENTS_CREATED = <span class="ph ph apiData">1</span></span></dt>
<dd>An event was created. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EVENTS_DESTROYED = <span class="ph ph apiData">2</span></span></dt>
<dd>An event was destroyed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EVENTS_RECORD = <span class="ph ph apiData">3</span></span></dt>
<dd>An event was recorded. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EVENTS_STREAM_WAIT = <span class="ph ph apiData">4</span></span></dt>
<dd>A stream was synchronized to an event. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EVENTS_SYNCHRONIZE = <span class="ph ph apiData">5</span></span></dt>
<dd>An event was synchronized. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EVENTS_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EVENTS_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gfe4f153f58660f80e6dd95e874ccd72a" id="group__SANITIZER__CALLBACK__API_1gfe4f153f58660f80e6dd95e874ccd72a" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdExternalMemory</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_EXTERNA_MEMORY. This value is communicated to the callback function via
the <tt class="ph tt code">cbid</tt> parameter. Available with a driver version of 535 or newer.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_EXTERNAL_MEMORY_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid external memory callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EXTERNAL_MEMORY_IMPORT = <span class="ph ph apiData">1</span></span></dt>
<dd>External memory was imported. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EXTERNAL_MEMORY_MAPPED = <span class="ph ph apiData">2</span></span></dt>
<dd>External memory was mapped. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EXTERNAL_MEMORY_DESTROYED = <span class="ph ph apiData">3</span></span></dt>
<dd>External memory was destroyed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EXTERNAL_MEMORY_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_EXTERNAL_MEMORY_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g65ad906ecc3006f2b49f63d8b09f38fd" id="group__SANITIZER__CALLBACK__API_1g65ad906ecc3006f2b49f63d8b09f38fd" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdGraphs</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_GRAPHS. This value is communicated to the callback function via the <tt class="ph tt code">cbid</tt> parameter.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid graphs callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATING = <span class="ph ph apiData">1</span></span></dt>
<dd>A new graphexec is being created. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATED = <span class="ph ph apiData">2</span></span></dt>
<dd>A new graphexec is created. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_GRAPHEXEC_DESTROYING = <span class="ph ph apiData">3</span></span></dt>
<dd>A graphexec is being destroyed </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_NODE_LAUNCH_BEGIN = <span class="ph ph apiData">4</span></span></dt>
<dd>A node launch was initiated. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_NODE_LAUNCH_END = <span class="ph ph apiData">5</span></span></dt>
<dd>A node launch is complete. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_LAUNCH_BEGIN = <span class="ph ph apiData">6</span></span></dt>
<dd>A graph launch was initiated. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_LAUNCH_END = <span class="ph ph apiData">7</span></span></dt>
<dd>A graph launch is complete. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_GRAPHS_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g023cd56b97f1231cb0c4d11b4f8f95d4" id="group__SANITIZER__CALLBACK__API_1g023cd56b97f1231cb0c4d11b4f8f95d4" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdLaunch</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_LAUNCH. This value is communicated to the callback function via the <tt class="ph tt code">cbid</tt> parameter.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_LAUNCH_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid launch callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_LAUNCH_BEGIN = <span class="ph ph apiData">1</span></span></dt>
<dd>A grid launch was initiated. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_LAUNCH_AFTER_SYSCALL_SETUP = <span class="ph ph apiData">2</span></span></dt>
<dd>A grid launch has completed syscalls setup. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_LAUNCH_END = <span class="ph ph apiData">3</span></span></dt>
<dd>The grid launch is complete. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_LAUNCH_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_LAUNCH_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g9047997c07890c2fd3136ca731228bd5" id="group__SANITIZER__CALLBACK__API_1g9047997c07890c2fd3136ca731228bd5" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdMemcpy</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_MEMCPY. This value is communicated to the callback function via the <tt class="ph tt code">cbid</tt> parameter.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_MEMCPY_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid memcpy callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_MEMCPY_STARTING = <span class="ph ph apiData">1</span></span></dt>
<dd>A memcpy operation was initiated. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_MEMCPY_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_MEMCPY_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g70a5aabab8a7528c5213ee5f535b466c" id="group__SANITIZER__CALLBACK__API_1g70a5aabab8a7528c5213ee5f535b466c" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdMemset</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_MEMSET. This value is communicated to the callback function via the <tt class="ph tt code">cbid</tt> parameter.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_MEMSET_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid memset callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_MEMSET_STARTING = <span class="ph ph apiData">1</span></span></dt>
<dd>A memset operation was initiated. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_MEMSET_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_MEMSET_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gd447a2768c522f1d2b2a086a47705a49" id="group__SANITIZER__CALLBACK__API_1gd447a2768c522f1d2b2a086a47705a49" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdResource</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_RESOURCE. This value is communicated to the callback function via the
<tt class="ph tt code">cbid</tt> parameter.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid resource callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_INIT_FINISHED = <span class="ph ph apiData">1</span></span></dt>
<dd>Driver initialization is finished. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_CONTEXT_CREATION_STARTING = <span class="ph ph apiData">2</span></span></dt>
<dd>A new context is about to be created. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_CONTEXT_CREATION_FINISHED = <span class="ph ph apiData">3</span></span></dt>
<dd>A new context was created. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_CONTEXT_DESTROY_STARTING = <span class="ph ph apiData">4</span></span></dt>
<dd>A context is about to be destroyed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_CONTEXT_DESTROY_FINISHED = <span class="ph ph apiData">5</span></span></dt>
<dd>A context was destroyed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_STREAM_CREATED = <span class="ph ph apiData">6</span></span></dt>
<dd>A new stream was created. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_STREAM_DESTROY_STARTING = <span class="ph ph apiData">7</span></span></dt>
<dd>A stream is about to be destroyed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_STREAM_DESTROY_FINISHED = <span class="ph ph apiData">8</span></span></dt>
<dd>A stream was destroyed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MODULE_LOADED = <span class="ph ph apiData">9</span></span></dt>
<dd>A module was loaded. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MODULE_UNLOAD_STARTING = <span class="ph ph apiData">10</span></span></dt>
<dd>A module is about to be unloaded. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_DEVICE_MEMORY_ALLOC = <span class="ph ph apiData">11</span></span></dt>
<dd>Device memory was allocated. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_DEVICE_MEMORY_FREE = <span class="ph ph apiData">12</span></span></dt>
<dd>Device memory was freed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_HOST_MEMORY_ALLOC = <span class="ph ph apiData">13</span></span></dt>
<dd>Pinned host memory was allocated. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_HOST_MEMORY_FREE = <span class="ph ph apiData">14</span></span></dt>
<dd>Pinned host memory was freed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MEMORY_ALLOC_ASYNC = <span class="ph ph apiData">15</span></span></dt>
<dd>Memory was allocated asynchronously. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MEMORY_FREE_ASYNC = <span class="ph ph apiData">16</span></span></dt>
<dd>Memory was freed asynchronously. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MEMORY_FREE_ASYNC_DONE = <span class="ph ph apiData">17</span></span></dt>
<dd>Memory freed asynchronously was released, only happens if a regular allocation (cudaMalloc) is free'd asynchronously (cudaFreeAsync).See
CUDA runtime documentation for cudaFreeAsync
</dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MEMPOOL_CREATED = <span class="ph ph apiData">18</span></span></dt>
<dd>A new mempool was created. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MEMPOOL_DESTROYING = <span class="ph ph apiData">19</span></span></dt>
<dd>A mempool is about to be destroyed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MEMPOOL_PEER_ACCESS_ENABLED = <span class="ph ph apiData">20</span></span></dt>
<dd>A mempool is now accessible from a peer device. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MEMPOOL_PEER_ACCESS_DISABLING = <span class="ph ph apiData">21</span></span></dt>
<dd>A mempool is no longer accessible from a peer device. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_ARRAY_CREATED = <span class="ph ph apiData">22</span></span></dt>
<dd>A CUDA array was created. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_ARRAY_DESTROYED = <span class="ph ph apiData">23</span></span></dt>
<dd>A CUDA array was destroyed. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_FUNCTIONS_LAZY_LOADED = <span class="ph ph apiData">24</span></span></dt>
<dd>CUDA functions were loaded lazily and are fully loaded. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_FUNCTIONS_LAZY_PATCHED = <span class="ph ph apiData">25</span></span></dt>
<dd>CUDA lazily loaded functions were patched. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_VIRTUAL_RESERVE = <span class="ph ph apiData">26</span></span></dt>
<dd>The CUDA driver reserved a virtual address range. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_VIRTUAL_RELEASE = <span class="ph ph apiData">27</span></span></dt>
<dd>The CUDA driver released a virtual address range. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_MEMPOOL_IMPORT_POINTER = <span class="ph ph apiData">28</span></span></dt>
<dd>A memory pool allocation was imported. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_RESOURCE_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gd0dca53274794d63531e7993fb6248a0" id="group__SANITIZER__CALLBACK__API_1gd0dca53274794d63531e7993fb6248a0" shape="rect">
<!-- --></a><span>enum Sanitizer_CallbackIdUvm</span></dt>
<dd class="description">
<div class="section">
<p>Callback IDs for resource domain SANITIZER_CB_DOMAIN_UVM. This value is communicated to the callback function via the <tt class="ph tt code">cbid</tt> parameter.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CBID_UVM_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid managed memory callback ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_UVM_ATTACH_MEM = <span class="ph ph apiData">1</span></span></dt>
<dd>Modify the stream association of an allocation (see cudaStreamAttachMemAsync) </dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_UVM_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_CBID_UVM_FORCE_ITN = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g6dd430318fea9a813020c974d07da85e" id="group__SANITIZER__CALLBACK__API_1g6dd430318fea9a813020c974d07da85e" shape="rect">
<!-- --></a><span>enum Sanitizer_MemcpyDirection</span></dt>
<dd class="description">
<div class="section">
<p>Indicates the direction of a memcpy, passed inside <tt class="ph tt code">Sanitizer_Memcpydata</tt>.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_MEMCPY_DIRECTION_UNKNOWN = <span class="ph ph apiData">0</span></span></dt>
<dd>Unknown memcpy direction </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMCPY_DIRECTION_HOST_TO_HOST = <span class="ph ph apiData">1</span></span></dt>
<dd>Memcpy from host to host. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMCPY_DIRECTION_HOST_TO_DEVICE = <span class="ph ph apiData">2</span></span></dt>
<dd>Memcpy from host to device. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMCPY_DIRECTION_DEVICE_TO_HOST = <span class="ph ph apiData">3</span></span></dt>
<dd>Memcpy from device to host. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMCPY_DIRECTION_DEVICE_TO_DEVICE = <span class="ph ph apiData">4</span></span></dt>
<dd>Memcpy from device to device. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMCPY_DIRECTION_SIZE</span></dt>
<dd></dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMCPY_DIRECTION_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g62d02f306fdb955ab1f5add810c45564" id="group__SANITIZER__CALLBACK__API_1g62d02f306fdb955ab1f5add810c45564" shape="rect">
<!-- --></a><span>enum Sanitizer_MemoryVisibility</span></dt>
<dd class="description">
<div class="section">
<p>Specifies the visibility of an allocation. This is typically GLOBAL on allocations made via cudaMalloc, cudaHostAlloc and
similar APIs. This can be GLOBAL or HOST for cudaMallocManaged allocations depending on the flags parameter. This can be changed
after allocation time using cudaMemAttachSingle API (see SANITIZER_CBID_UVM_ATTACH_MEM for the corresponding callback).
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_VISIBILITY_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid memory visibility </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_VISIBILITY_GLOBAL = <span class="ph ph apiData">1</span></span></dt>
<dd>Memory can be accessed by any stream on any device (see cudaMemAttachGlobal) </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_VISIBILITY_HOST = <span class="ph ph apiData">2</span></span></dt>
<dd>Memory cannot be accessed by any stream on any device (see cudaMemAttachHost) </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_VISIBILITY_STREAM = <span class="ph ph apiData">3</span></span></dt>
<dd>Memory can only be accessed by a single stream on the associated device (see cudaMemAttachSingle) </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_VISIBILITY_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gd29155bb34524587a5a42d41be1d3fb2" id="group__SANITIZER__CALLBACK__API_1gd29155bb34524587a5a42d41be1d3fb2" shape="rect">
<!-- --></a><span>enum Sanitizer_ResourceMemoryFlags</span></dt>
<dd class="description">
<div class="section">
<p>Flags describing a memory allocation. These values are to be used in order to interpret the value of <a class="xref" href="modules.html#group__SANITIZER__CALLBACK__API_1g7bee77cc4075471b0397cf557c843c4a" shape="rect">Sanitizer_ResourceMemoryData::flags</a></p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_NONE = <span class="ph ph apiData">0</span></span></dt>
<dd>Empty flag. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_MODULE = <span class="ph ph apiData">0x1</span></span></dt>
<dd>Specifies that the allocation is static scoped to a module. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_MANAGED = <span class="ph ph apiData">0x2</span></span></dt>
<dd>Specifies that the allocation is managed memory. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_HOST_MAPPED = <span class="ph ph apiData">0x4</span></span></dt>
<dd>Species that the allocation accessible from the host. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_HOST_PINNED = <span class="ph ph apiData">0x8</span></span></dt>
<dd>Specifies that the allocation is pinned on the host. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_PEER = <span class="ph ph apiData">0x10</span></span></dt>
<dd>Specifies that the allocation is located on a peer GPU. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_PEER_ATOMIC = <span class="ph ph apiData">0x20</span></span></dt>
<dd>Specifies that the allocation is located on a peer GPU supporting native atomics. This implies that SANITIZER_MEMORY_FLAG_PEER
is set as well.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_CG_RUNTIME = <span class="ph ph apiData">0x40</span></span></dt>
<dd>Specifies that the allocation is used by the Cooperative Groups runtime functions. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_CNP = <span class="ph ph apiData">0x80</span></span></dt>
<dd>Specifies that this is an allocation used for CUDA Dynamic Parallelism purposes. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_FLAG_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gc172db1fa20fecca6ac23c2954ae15a1" id="group__SANITIZER__CALLBACK__API_1gc172db1fa20fecca6ac23c2954ae15a1" shape="rect">
<!-- --></a><span>enum Sanitizer_ResourceMemoryPermissions</span></dt>
<dd class="description">
<div class="section">
<p>Permissions for a memory allocation. These values are to be used in order to interpret the value of <a class="xref" href="modules.html#group__SANITIZER__CALLBACK__API_1gfa68ea5df21d945ae35162a7573c4d61" shape="rect">Sanitizer_ResourceMemoryData::permissions</a></p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_PERMISSION_NONE = <span class="ph ph apiData">0</span></span></dt>
<dd>No permissions. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_PERMISSION_READ = <span class="ph ph apiData">0x1</span></span></dt>
<dd>Specifies that the allocation is readable. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_PERMISSION_WRITE = <span class="ph ph apiData">0x2</span></span></dt>
<dd>Specifies that the allocation is writable. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_PERMISSION_ATOMIC = <span class="ph ph apiData">0x4</span></span></dt>
<dd>Specifies that the allocation is readable/writable with atomic operations. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_PERMISSION_ALL = <span class="ph ph apiData">0x7</span></span></dt>
<dd>Specifies that the allocation has all permissions. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_PERMISSION_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
</dl>
</div>
<div class="description">
<h4 class="sectiontitle">Functions</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g333a1254396a7a8ba5f8921d1f65642a" id="group__SANITIZER__CALLBACK__API_1g333a1254396a7a8ba5f8921d1f65642a" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerEnableAllDomains ( uint32_t<span> </span><span class="keyword keyword apiItemName">enable</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span> ) </span></dt>
<dd class="description">
<div class="section">Enable or disable all callbacks in all domains. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">enable</span></tt></dt>
<dd>New enable state for all callbacks in all domains. Zero disables all callbacks, non-zero enables all callbacks. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">subscriber</span></tt></dt>
<dd>- Handle of the initialized subscriber</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">subscriber</tt> is invalid
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Enable or disable all callbacks in all domains.</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: a subscriber must serialize access to sanitizerGetCallbackState, sanitizerEnableCallback, sanitizerEnableDomain, and sanitizerEnableAllDomains.
For example, if sanitizerGetCallbackState(sub, d, *) and sanitizerEnableAllDomains(sub) are called concurrently, the results
are undefined.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g5463cc746520167ff93e22636549b66b" id="group__SANITIZER__CALLBACK__API_1g5463cc746520167ff93e22636549b66b" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerEnableCallback ( uint32_t<span> </span><span class="keyword keyword apiItemName">enable</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" title="Callback domains. " shape="rect">Sanitizer_CallbackDomain</a><span> </span><span class="keyword keyword apiItemName">domain</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g6e4655fe27c8ee6f85661350bfbc7bd7" title="Callback ID. " shape="rect">Sanitizer_CallbackId</a><span> </span><span class="keyword keyword apiItemName">cbid</span> ) </span></dt>
<dd class="description">
<div class="section">Enable or disable callbacks for a specific domain and callback ID. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">enable</span></tt></dt>
<dd>New enable state for the callback. Zero disables the callback, non-zero enables the callback </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">subscriber</span></tt></dt>
<dd>- Handle of the initialized subscriber </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">domain</span></tt></dt>
<dd>The domain of the callback </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">cbid</span></tt></dt>
<dd>The ID of the callback</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">subscriber</tt>, <tt class="ph tt code">domain</tt> or <tt class="ph tt code">cbid</tt> is invalid
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Enable or disable callbacks for a subscriber for a specific domain and callback ID.</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: a subscriber must serialize access to sanitizerGetCallbackState, sanitizerEnableCallback, sanitizerEnableDomain, and sanitizerEnableAllDomains.
For example, if sanitizerGetCallbackState(sub, d, c) and sanitizerEnableCallback(sub, d, c) are called concurrently, the results
are undefined.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gffda58e1b795d575a0439557ff9f6fa5" id="group__SANITIZER__CALLBACK__API_1gffda58e1b795d575a0439557ff9f6fa5" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerEnableDomain ( uint32_t<span> </span><span class="keyword keyword apiItemName">enable</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" title="Callback domains. " shape="rect">Sanitizer_CallbackDomain</a><span> </span><span class="keyword keyword apiItemName">domain</span> ) </span></dt>
<dd class="description">
<div class="section">Enable or disable all callbacks for a specific domain. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">enable</span></tt></dt>
<dd>New enable state for all callbacks in the domain. Zero disables all callbacks, non-zero enables all callbacks </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">subscriber</span></tt></dt>
<dd>- Handle of the initialized subscriber </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">domain</span></tt></dt>
<dd>The domain of the callback</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">subscriber</tt> or <tt class="ph tt code">domain</tt> is invalid
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Enable or disable all callbacks for a specific domain.</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: a subscriber must serialize access to sanitizerGetCallbackState, sanitizerEnableCallback, sanitizerEnableDomain, and sanitizerEnableAllDomains.
For example, if sanitizerGetCallbackEnabled(sub, d, *) and sanitizerEnableDomain(sub, d) are called concurrently, the results
are undefined.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g631b78eb2d8bef7ac892461cda0eff67" id="group__SANITIZER__CALLBACK__API_1g631b78eb2d8bef7ac892461cda0eff67" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerGetCallbackState ( uint32_t*<span> </span><span class="keyword keyword apiItemName">enable</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g2184025e5309c5989412b9f64beac46b" title="Callback domains. " shape="rect">Sanitizer_CallbackDomain</a><span> </span><span class="keyword keyword apiItemName">domain</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1g6e4655fe27c8ee6f85661350bfbc7bd7" title="Callback ID. " shape="rect">Sanitizer_CallbackId</a><span> </span><span class="keyword keyword apiItemName">cbid</span> ) </span></dt>
<dd class="description">
<div class="section">Get the current enabled/disabled state of a callback for a specific domain and function ID. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">enable</span></tt></dt>
<dd>Returns non-zero if callback enabled, zero if not enabled </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">subscriber</span></tt></dt>
<dd>Handle to the initialized subscriber </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">domain</span></tt></dt>
<dd>The domain of the callback </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">cbid</span></tt></dt>
<dd>The ID of the callback</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">enabled</tt> is NULL, or if <tt class="ph tt code">subscriber</tt>, <tt class="ph tt code">domain</tt> or <tt class="ph tt code">cbid</tt> is invalid.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Returns non-zero in <tt class="ph tt code">*enable</tt> if the callback for a domain and callback ID is enabled, and zero if not enabled.
</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: a subscriber must serialize access to sanitizerGetCallbackState, sanitizerEnableCallback, sanitizerEnableDomain, and sanitizerEnableAllDomains.
For example, if sanitizerGetCallbackState(sub, d, c) and sanitizerEnableCallback(sub, d, c) are called concurrently, the results
are undefined.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g2740c794198ce1cae40f02d5bad3ab8b" id="group__SANITIZER__CALLBACK__API_1g2740c794198ce1cae40f02d5bad3ab8b" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerSubscribe ( <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a>*<span> </span><span class="keyword keyword apiItemName">subscriber</span>, <a href="modules.html#group__SANITIZER__CALLBACK__API_1gf031ccd4dcc013ab017d9ee1032858c4" title="Function type for a callback. " shape="rect">Sanitizer_CallbackFunc</a><span> </span><span class="keyword keyword apiItemName">callback</span>, void*<span> </span><span class="keyword keyword apiItemName">userdata</span> ) </span></dt>
<dd class="description">
<div class="section">Initialize a callback subscriber with a callback function and user data. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">subscriber</span></tt></dt>
<dd>Returns handle to initialize subscriber </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">callback</span></tt></dt>
<dd>The callback function </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">userdata</span></tt></dt>
<dd>A pointer to user data. This data will be passed to the callback function via the <tt class="ph tt code">userdata</tt> parameter
</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_MAX_LIMIT_RACHED
<p class="p">if there is already a sanitizer subscriber </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">subscriber</tt> is NULL
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Initialize a callback subscriber with a callback function and (optionally) a pointer to user data. The returned subscriber
handle can be used to enable and disable the callback for specific domains and callback IDs.
</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><ul class="ul">
<li class="li">
<p class="p">Only one subscriber can be registered at a time. </p>
</li>
<li class="li">
<p class="p">This function does not enable any callbacks. </p>
</li>
<li class="li">
<p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</li>
</ul>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g143e5fe94ccaab6559c7af04df01a0e8" id="group__SANITIZER__CALLBACK__API_1g143e5fe94ccaab6559c7af04df01a0e8" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerUnsubscribe ( <a href="modules.html#group__SANITIZER__CALLBACK__API_1g11604a410fe99da425a0bd40b17c7464" title="A callback subscriber. " shape="rect">Sanitizer_SubscriberHandle</a><span> </span><span class="keyword keyword apiItemName">subscriber</span> ) </span></dt>
<dd class="description">
<div class="section">Unregister a callback subscriber. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">subscriber</span></tt></dt>
<dd>Handle to the initialized subscriber</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">subscriber</tt> is NULL or not initialized
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Removes a callback subscriber so that no future callback will be issued to that subscriber. </p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
</dl>
</div>
<div class="description">
<h4 class="sectiontitle">Variables</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb535f9480452944a891c80ba054268ba" id="group__SANITIZER__CALLBACK__API_1gb535f9480452944a891c80ba054268ba" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_BatchMemopData::address</span></dt>
<dd class="description">
<div class="section">
<p> The address to be written. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g3ef9cb88408697511f56effdfeed5da8" id="group__SANITIZER__CALLBACK__API_1g3ef9cb88408697511f56effdfeed5da8" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_BatchMemopData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gd0b50ad0f897b982a76d9542253fec93" id="group__SANITIZER__CALLBACK__API_1gd0b50ad0f897b982a76d9542253fec93" shape="rect">
<!-- --></a><span>CUstream Sanitizer_BatchMemopData::stream</span></dt>
<dd class="description">
<div class="section">
<p> The stream where the batch memop is executed. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g874b875cc64512766ed6d8f43fea3afd" id="group__SANITIZER__CALLBACK__API_1g874b875cc64512766ed6d8f43fea3afd" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__CALLBACK__API_1gab53af117ae98aa6acf0a6b4dfb71cfa" title="Specifies the type of batch memory operation. " shape="rect">Sanitizer_BatchMemopType</a> Sanitizer_BatchMemopData::type</span></dt>
<dd class="description">
<div class="section">
<p> Type of batch memory operation. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g61c24785086fa41e344d54faa076b6d0" id="group__SANITIZER__CALLBACK__API_1g61c24785086fa41e344d54faa076b6d0" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_BatchMemopData::value</span></dt>
<dd class="description">
<div class="section">
<p> The value to be written. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g6952454cc861e5a97c40d9e459a90351" id="group__SANITIZER__CALLBACK__API_1g6952454cc861e5a97c40d9e459a90351" shape="rect">
<!-- --></a><span>CUcontext Sanitizer_CallbackData::context</span></dt>
<dd class="description">
<div class="section">
<p> Driver context current to the thread, or null if no context is current. This value can change from the entry to exit callback
of a runtime API function if the runtime initialized a context.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gcffbfadfe4c7af894d8e39407595efd2" id="group__SANITIZER__CALLBACK__API_1gcffbfadfe4c7af894d8e39407595efd2" shape="rect">
<!-- --></a><span>const
char
* Sanitizer_CallbackData::functionName</span></dt>
<dd class="description">
<div class="section">
<p> Name of the runtime or driver API function which issued the callback. This string is a global constant and so may be accessed
outside of the callback.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g3866442ee35daa08d5bbd2eeb366f91f" id="group__SANITIZER__CALLBACK__API_1g3866442ee35daa08d5bbd2eeb366f91f" shape="rect">
<!-- --></a><span>const
void
* Sanitizer_CallbackData::functionParams</span></dt>
<dd class="description">
<div class="section">
<p> Pointer to the arguments passed to the runtime or driver API call. See generated_cuda_runtime_api_meta.h and generated_cuda_meta.h
for structure definitions for the parameters for each runtime and driver API function.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb523a3af8e202cbbdd706277014041fa" id="group__SANITIZER__CALLBACK__API_1gb523a3af8e202cbbdd706277014041fa" shape="rect">
<!-- --></a><span>const
void
* Sanitizer_CallbackData::functionReturnValue</span></dt>
<dd class="description">
<div class="section">
<p> Pointer to the return value of the runtime or driver API call. This field is only valid within the SANITIZER_API_EXIT callback.
For a runtime API <tt class="ph tt code">functionReturnValue</tt> points to a <tt class="ph tt code">cudaError_t</tt>. For a driver API <tt class="ph tt code">functionReturnValue</tt> points to a <tt class="ph tt code">CUresult</tt>.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g1ee030118e093f440f953d896ee80be6" id="group__SANITIZER__CALLBACK__API_1g1ee030118e093f440f953d896ee80be6" shape="rect">
<!-- --></a><span>const
char
* Sanitizer_CallbackData::symbolName</span></dt>
<dd class="description">
<div class="section">
<p> Name of the symbol operated on by the runtime or driver API function which issued the callback. This entry is valid only
for driver and runtime launch callbacks, where it returns the name of the kernel.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g6da08037d5ae573a39e4f54183a6db35" id="group__SANITIZER__CALLBACK__API_1g6da08037d5ae573a39e4f54183a6db35" shape="rect">
<!-- --></a><span>CUcontext Sanitizer_EventData::context</span></dt>
<dd class="description">
<div class="section">
<p> For SANITIZER_CBID_EVENTS_CREATED, SANITIZER_CBID_EVENTS_DESTROYED, and SANITIZER_CBID_EVENTS_SYNCHNONIZED, this is the context
containing the event. For SANITIZER_CBID_EVENTS_RECORD and SANITIZER_CBID_EVENTS_STREAM_WAIT, this is the context containing
the stream being recorded or waiting.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g2f6747e6a89033d27f91d7b72e5599be" id="group__SANITIZER__CALLBACK__API_1g2f6747e6a89033d27f91d7b72e5599be" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_EventData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g96c543b1fdcbd06824271501fc8d1b89" id="group__SANITIZER__CALLBACK__API_1g96c543b1fdcbd06824271501fc8d1b89" shape="rect">
<!-- --></a><span>CUstream Sanitizer_EventData::stream</span></dt>
<dd class="description">
<div class="section">
<p> The stream being recorded or waiting. Available if cbid is SANITIZER_CBID_EVENTS_RECORD or SANITIZER_CBID_EVENTS_STREAM_WAIT.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g18d1a1ea4c519211469701e18f4c2380" id="group__SANITIZER__CALLBACK__API_1g18d1a1ea4c519211469701e18f4c2380" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_ExternalMemoryData::address</span></dt>
<dd class="description">
<div class="section">
<p> Address of the mapped memory. This field is only valid for SANITIZER_CBID_EXTERNAL_MEMORY_MAPPED </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g5a59564816fd60a2874024e789fb1d2f" id="group__SANITIZER__CALLBACK__API_1g5a59564816fd60a2874024e789fb1d2f" shape="rect">
<!-- --></a><span>CUdevice Sanitizer_ExternalMemoryData::device</span></dt>
<dd class="description">
<div class="section">
<p> Device containing the external memory. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g5ffec44a18fbbbf253676057147d8928" id="group__SANITIZER__CALLBACK__API_1g5ffec44a18fbbbf253676057147d8928" shape="rect">
<!-- --></a><span>CUexternalMemory Sanitizer_ExternalMemoryData::extMemory</span></dt>
<dd class="description">
<div class="section">
<p> External memory object. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1ga070c404bc59643510737bb5278432fb" id="group__SANITIZER__CALLBACK__API_1ga070c404bc59643510737bb5278432fb" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_ExternalMemoryData::size</span></dt>
<dd class="description">
<div class="section">
<p> Size of the memory imported or mapped. This field is only valid for SANITIZER_CBID_EXTERNAL_MEMORY_IMPORT and SANITIZER_CBID_EXTERNAL_MEMORY_MAPPED.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g5f9006c60aa1f3b3c68de6974b4c3518" id="group__SANITIZER__CALLBACK__API_1g5f9006c60aa1f3b3c68de6974b4c3518" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_GraphExecData::containsDeviceGraphLaunches</span></dt>
<dd class="description">
<div class="section">
<p> Boolean value indicating if the graphexec may launch device graphs. Only valid in the SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATED
callback with driver version of 535 or newer.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g26bf32e11e39a0e9fd7aef54d544b0cc" id="group__SANITIZER__CALLBACK__API_1g26bf32e11e39a0e9fd7aef54d544b0cc" shape="rect">
<!-- --></a><span>CUcontext Sanitizer_GraphExecData::deviceGraphLaunchesContext</span></dt>
<dd class="description">
<div class="section">
<p> Context where the graphexec can launch device graphs. NULL if the graphExec doesn't launch device graphs. Only valid in the
SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATED callback with driver version of 535 or newer.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb1a817799b020868a692b5b2d82be2a9" id="group__SANITIZER__CALLBACK__API_1gb1a817799b020868a692b5b2d82be2a9" shape="rect">
<!-- --></a><span>CUgraphExec Sanitizer_GraphExecData::graphExec</span></dt>
<dd class="description">
<div class="section">
<p> Instance of the CUDA graph. Can be NULL for device graph launches in the SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATING callback.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gc77f7a54e4953682dcb29ff7bf794914" id="group__SANITIZER__CALLBACK__API_1gc77f7a54e4953682dcb29ff7bf794914" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_GraphExecData::isDeviceLaunch</span></dt>
<dd class="description">
<div class="section">
<p> Boolean value indicating if the graphexec is for a device graph launch </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g6c69e3440ef748c6c5338505f6bb521e" id="group__SANITIZER__CALLBACK__API_1g6c69e3440ef748c6c5338505f6bb521e" shape="rect">
<!-- --></a><span>CUgraphExec Sanitizer_GraphLaunchData::graphExec</span></dt>
<dd class="description">
<div class="section">
<p> Instance of the CUDA graph being launched. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g27bdfc7058401c7a88e7bf538752c5ab" id="group__SANITIZER__CALLBACK__API_1g27bdfc7058401c7a88e7bf538752c5ab" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_GraphLaunchData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g43ba40476321bc1b026eab8e3ef364d1" id="group__SANITIZER__CALLBACK__API_1g43ba40476321bc1b026eab8e3ef364d1" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_GraphLaunchData::isGraphUpload</span></dt>
<dd class="description">
<div class="section">
<p> Boolean value indicating if the launch callback is part of a graph upload. This field is only valid if the driver version
is 510 or newer.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g4e19a42decf1a32b5582e4ba19346209" id="group__SANITIZER__CALLBACK__API_1g4e19a42decf1a32b5582e4ba19346209" shape="rect">
<!-- --></a><span>CUstream Sanitizer_GraphLaunchData::stream</span></dt>
<dd class="description">
<div class="section">
<p> The stream where the graph is launched. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g72f04317e3ea0b0ba1e62d54c06606ad" id="group__SANITIZER__CALLBACK__API_1g72f04317e3ea0b0ba1e62d54c06606ad" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_GraphNodeLaunchData::isGraphUpload</span></dt>
<dd class="description">
<div class="section">
<p> Boolean value indicating if the node launch callback is part of a graph upload. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gdf81e4d9627fd5f003f01075878e2a89" id="group__SANITIZER__CALLBACK__API_1gdf81e4d9627fd5f003f01075878e2a89" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_GraphNodeLaunchData::launchId</span></dt>
<dd class="description">
<div class="section">
<p> Launch ID for this CUDA graph instance </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1ge334046a272b7c07489c0d80fab9f8b6" id="group__SANITIZER__CALLBACK__API_1ge334046a272b7c07489c0d80fab9f8b6" shape="rect">
<!-- --></a><span>struct <a href="annotated.html#structSanitizer__ResourceMemoryData" title="Data passed into a memory resource callback function. " shape="rect">Sanitizer_ResourceMemoryData</a> Sanitizer_GraphNodeLaunchData::memAllocData</span></dt>
<dd class="description">
<div class="section">
<p> This is only valid if nodeType is CU_GRAPH_NODE_TYPE_MEM_ALLOC. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gda8d9c0a133719825143b35a3e544eea" id="group__SANITIZER__CALLBACK__API_1gda8d9c0a133719825143b35a3e544eea" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_GraphNodeLaunchData::memFreeAddress</span></dt>
<dd class="description">
<div class="section">
<p> The freed device pointer This is only valid if nodeType is CU_GRAPH_NODE_TYPE_MEM_FREE. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gf2b961a7eae0b73c12f7ec099d4726f6" id="group__SANITIZER__CALLBACK__API_1gf2b961a7eae0b73c12f7ec099d4726f6" shape="rect">
<!-- --></a><span>struct <a href="annotated.html#structSanitizer__MemcpyData" title="Data passed into a memcpy callback function. " shape="rect">Sanitizer_MemcpyData</a> Sanitizer_GraphNodeLaunchData::memcpyData</span></dt>
<dd class="description">
<div class="section">
<p> This is only valid if nodeType is CU_GRAPH_NODE_TYPE_MEMCPY. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1ga931adc0a0129a4490a2c6bb786b8d0f" id="group__SANITIZER__CALLBACK__API_1ga931adc0a0129a4490a2c6bb786b8d0f" shape="rect">
<!-- --></a><span>struct <a href="annotated.html#structSanitizer__MemsetData" title="Data passed into a memset callback function. " shape="rect">Sanitizer_MemsetData</a> Sanitizer_GraphNodeLaunchData::memsetData</span></dt>
<dd class="description">
<div class="section">
<p> This is only valid if nodeType is CU_GRAPH_NODE_TYPE_MEMSET. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g86c2a7422b28ed2929f072e3d546b9c3" id="group__SANITIZER__CALLBACK__API_1g86c2a7422b28ed2929f072e3d546b9c3" shape="rect">
<!-- --></a><span>CUgraphNode Sanitizer_GraphNodeLaunchData::node</span></dt>
<dd class="description">
<div class="section">
<p> CUDA graphs node being launched. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1ge6c93bc5c7a5dc8a5d6ec72a42f87526" id="group__SANITIZER__CALLBACK__API_1ge6c93bc5c7a5dc8a5d6ec72a42f87526" shape="rect">
<!-- --></a><span>CUgraphNodeType Sanitizer_GraphNodeLaunchData::nodeType</span></dt>
<dd class="description">
<div class="section">
<p> CUDA graphs node type. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g0f74ceb1522b0d27bb1d38ce41f83d73" id="group__SANITIZER__CALLBACK__API_1g0f74ceb1522b0d27bb1d38ce41f83d73" shape="rect">
<!-- --></a><span>CUcontext Sanitizer_LaunchData::apiContext</span></dt>
<dd class="description">
<div class="section">
<p> Only valid for graph node launches. This is the context of the stream used in the graph launch API call. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g73236f03601aa99a589d4c46a4a8c19e" id="group__SANITIZER__CALLBACK__API_1g73236f03601aa99a589d4c46a4a8c19e" shape="rect">
<!-- --></a><span>CUstream Sanitizer_LaunchData::apiStream</span></dt>
<dd class="description">
<div class="section">
<p> Only valid for graph node launches. This is the stream used in the graph launch API call. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g54ac0dec13a70e0cb9d1dc3849c40063" id="group__SANITIZER__CALLBACK__API_1g54ac0dec13a70e0cb9d1dc3849c40063" shape="rect">
<!-- --></a><span>CUdevice Sanitizer_LaunchData::device</span></dt>
<dd class="description">
<div class="section">
<p> The device where the grid is launched </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g6ae473df62bfb4cac682ebedaf8627fd" id="group__SANITIZER__CALLBACK__API_1g6ae473df62bfb4cac682ebedaf8627fd" shape="rect">
<!-- --></a><span>CUfunction Sanitizer_LaunchData::function</span></dt>
<dd class="description">
<div class="section">
<p> The function of the grid launch. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gf217ff198ada2e206aa01e3e2f4aaef8" id="group__SANITIZER__CALLBACK__API_1gf217ff198ada2e206aa01e3e2f4aaef8" shape="rect">
<!-- --></a><span>const
char
* Sanitizer_LaunchData::functionName</span></dt>
<dd class="description">
<div class="section">
<p> The name of the launched function. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb9302cae916c7eaab0c6de268b246e59" id="group__SANITIZER__CALLBACK__API_1gb9302cae916c7eaab0c6de268b246e59" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_LaunchData::gridId</span></dt>
<dd class="description">
<div class="section">
<p> Unique identifier of the grid launch. For graph node launches, this is only unique within the graphexec launch. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb4c74f8d8eaa10a76a9eb055e02bbfdb" id="group__SANITIZER__CALLBACK__API_1gb4c74f8d8eaa10a76a9eb055e02bbfdb" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_LaunchData::hApiStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the API stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g57fec3035b443ac0cc7e35908ca53117" id="group__SANITIZER__CALLBACK__API_1g57fec3035b443ac0cc7e35908ca53117" shape="rect">
<!-- --></a><span>Sanitizer_LaunchHandle Sanitizer_LaunchData::hLaunch</span></dt>
<dd class="description">
<div class="section">
<p> Handle of the grid launch. This is only valid between the launch begin and end callbacks. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g07a4addf3473a03f38060b769517bd9e" id="group__SANITIZER__CALLBACK__API_1g07a4addf3473a03f38060b769517bd9e" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_LaunchData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g149c3ada82b4937473864e2b27bc5825" id="group__SANITIZER__CALLBACK__API_1g149c3ada82b4937473864e2b27bc5825" shape="rect">
<!-- --></a><span>CUmodule Sanitizer_LaunchData::module</span></dt>
<dd class="description">
<div class="section">
<p> The module containing the grid code. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g670de4d81de9ea2c2a2f875281f3d726" id="group__SANITIZER__CALLBACK__API_1g670de4d81de9ea2c2a2f875281f3d726" shape="rect">
<!-- --></a><span>CUstream Sanitizer_LaunchData::stream</span></dt>
<dd class="description">
<div class="section">
<p> The stream where the grid is launched. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g5f3e2d84df0369cd5bd8c439c2138513" id="group__SANITIZER__CALLBACK__API_1g5f3e2d84df0369cd5bd8c439c2138513" shape="rect">
<!-- --></a><span>CUcontext Sanitizer_MemcpyData::apiContext</span></dt>
<dd class="description">
<div class="section">
<p> The context on which the operation was requested </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g04d5baf46f54fbfbd61818a8b71652ef" id="group__SANITIZER__CALLBACK__API_1g04d5baf46f54fbfbd61818a8b71652ef" shape="rect">
<!-- --></a><span>CUstream Sanitizer_MemcpyData::apiStream</span></dt>
<dd class="description">
<div class="section">
<p> The stream on which the operation was requested </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g01d588f3dbd03429170cf7a9c64ecbca" id="group__SANITIZER__CALLBACK__API_1g01d588f3dbd03429170cf7a9c64ecbca" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__CALLBACK__API_1g6dd430318fea9a813020c974d07da85e" title="Memcpy direction. " shape="rect">Sanitizer_MemcpyDirection</a> Sanitizer_MemcpyData::direction</span></dt>
<dd class="description">
<div class="section">
<p> The direction of the transfer </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g176afbebea17970c434b9d5a7c1e2eb9" id="group__SANITIZER__CALLBACK__API_1g176afbebea17970c434b9d5a7c1e2eb9" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_MemcpyData::dstAddress</span></dt>
<dd class="description">
<div class="section">
<p> The destination allocation address. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1ga536604f8271c4d7d3c77ced6bb87899" id="group__SANITIZER__CALLBACK__API_1ga536604f8271c4d7d3c77ced6bb87899" shape="rect">
<!-- --></a><span>CUcontext Sanitizer_MemcpyData::dstContext</span></dt>
<dd class="description">
<div class="section">
<p> The context where the destination allocation is located </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g9a4d69875b446d382590721f3e352ab1" id="group__SANITIZER__CALLBACK__API_1g9a4d69875b446d382590721f3e352ab1" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_MemcpyData::dstPitch</span></dt>
<dd class="description">
<div class="section">
<p> The destination allocation pitch. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gf11d697d3d994de8b25059b1992b3135" id="group__SANITIZER__CALLBACK__API_1gf11d697d3d994de8b25059b1992b3135" shape="rect">
<!-- --></a><span>CUstream Sanitizer_MemcpyData::dstStream</span></dt>
<dd class="description">
<div class="section">
<p> The stream where the memcpy is executed on the destination context </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gbb1196661652d08050d69aaf618f7459" id="group__SANITIZER__CALLBACK__API_1gbb1196661652d08050d69aaf618f7459" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_MemcpyData::hApiStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the API stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g3e5d47e9ca81bbf4192dc9cd4958ca9d" id="group__SANITIZER__CALLBACK__API_1g3e5d47e9ca81bbf4192dc9cd4958ca9d" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_MemcpyData::hDstStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the destination context stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gbe70ebd1173d6137ca064e66b4b99965" id="group__SANITIZER__CALLBACK__API_1gbe70ebd1173d6137ca064e66b4b99965" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_MemcpyData::hSrcStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the source context stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gd42ab4aa1a7f1ffbfe4e3787d45141f6" id="group__SANITIZER__CALLBACK__API_1gd42ab4aa1a7f1ffbfe4e3787d45141f6" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_MemcpyData::isAsync</span></dt>
<dd class="description">
<div class="section">
<p> Boolean value indicating if the transfer is asynchronous. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g297d5464c98df6630501e117c1262b48" id="group__SANITIZER__CALLBACK__API_1g297d5464c98df6630501e117c1262b48" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_MemcpyData::size</span></dt>
<dd class="description">
<div class="section">
<p> Size of the transfer in bytes. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb300021e73a68db7b679bebfc81425e6" id="group__SANITIZER__CALLBACK__API_1gb300021e73a68db7b679bebfc81425e6" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_MemcpyData::srcAddress</span></dt>
<dd class="description">
<div class="section">
<p> The source allocation address. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gc851b50eb12aa0e38d1bf5e349b5a66b" id="group__SANITIZER__CALLBACK__API_1gc851b50eb12aa0e38d1bf5e349b5a66b" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_MemcpyData::srcPitch</span></dt>
<dd class="description">
<div class="section">
<p> The source allocation pitch. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g5dbf45c2f3f09b40d901628ab557ef48" id="group__SANITIZER__CALLBACK__API_1g5dbf45c2f3f09b40d901628ab557ef48" shape="rect">
<!-- --></a><span>CUstream Sanitizer_MemcpyData::srcStream</span></dt>
<dd class="description">
<div class="section">
<p> The stream where the memcpy is executed on the source context </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g9bb9e8fa40bb441864e2620ebb2eb430" id="group__SANITIZER__CALLBACK__API_1g9bb9e8fa40bb441864e2620ebb2eb430" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_MemcpyData::width</span></dt>
<dd class="description">
<div class="section">
<p> Memcpy size configuration. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g86864b17ab8ef4bcbdf9cf27ea86b6a9" id="group__SANITIZER__CALLBACK__API_1g86864b17ab8ef4bcbdf9cf27ea86b6a9" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_MemsetData::address</span></dt>
<dd class="description">
<div class="section">
<p> The address of the memset start. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g0246494f29ba1644b2a3abb5ac2d6cee" id="group__SANITIZER__CALLBACK__API_1g0246494f29ba1644b2a3abb5ac2d6cee" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_MemsetData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g25e97b753473f3e78a76cbe75d66758c" id="group__SANITIZER__CALLBACK__API_1g25e97b753473f3e78a76cbe75d66758c" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_MemsetData::isAsync</span></dt>
<dd class="description">
<div class="section">
<p> Boolean value indicating if the transfer is asynchronous. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g568656a07f80c2747dfd6eaf3ac6fa95" id="group__SANITIZER__CALLBACK__API_1g568656a07f80c2747dfd6eaf3ac6fa95" shape="rect">
<!-- --></a><span>CUstream Sanitizer_MemsetData::stream</span></dt>
<dd class="description">
<div class="section">
<p> The stream where the memset is executed. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g5fc409e9d272bef19b26b754103152f2" id="group__SANITIZER__CALLBACK__API_1g5fc409e9d272bef19b26b754103152f2" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_MemsetData::value</span></dt>
<dd class="description">
<div class="section">
<p> Value to be written. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gdf48f929e8ccaf649688cdfac51b63a2" id="group__SANITIZER__CALLBACK__API_1gdf48f929e8ccaf649688cdfac51b63a2" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_MemsetData::width</span></dt>
<dd class="description">
<div class="section">
<p> Memset size configuration. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g6dbe2da80b68f48859499c24d325b9f0" id="group__SANITIZER__CALLBACK__API_1g6dbe2da80b68f48859499c24d325b9f0" shape="rect">
<!-- --></a><span>CUarray Sanitizer_ResourceArrayData::hArray</span></dt>
<dd class="description">
<div class="section">
<p> The CUDA array being created or destroyed. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gda45296bad0f62f6df2ca07a7b545794" id="group__SANITIZER__CALLBACK__API_1gda45296bad0f62f6df2ca07a7b545794" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_ResourceArrayData::width</span></dt>
<dd class="description">
<div class="section">
<p> The CUDA array size. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gf1b86ab2888f0132953f56bfb63bfb38" id="group__SANITIZER__CALLBACK__API_1gf1b86ab2888f0132953f56bfb63bfb38" shape="rect">
<!-- --></a><span>CUdevice Sanitizer_ResourceContextData::device</span></dt>
<dd class="description">
<div class="section">
<p> The device on which the context is being created or destroyed. This field is only valid for SANITIZER_CBID_RESOURCE_CONTEXT_CREATION_*
callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g54c88e675e099bc4f01351f871107aab" id="group__SANITIZER__CALLBACK__API_1g54c88e675e099bc4f01351f871107aab" shape="rect">
<!-- --></a><span>const
CUfunction
* Sanitizer_ResourceFunctionsLazyLoadedData::functions</span></dt>
<dd class="description">
<div class="section">
<p> An array containing the functions. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g549f330264682c91331b433868c166fc" id="group__SANITIZER__CALLBACK__API_1g549f330264682c91331b433868c166fc" shape="rect">
<!-- --></a><span>CUmodule Sanitizer_ResourceFunctionsLazyLoadedData::module</span></dt>
<dd class="description">
<div class="section">
<p> The module containing the functions. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g2fc6eb609d8345b59f58b5469e73e121" id="group__SANITIZER__CALLBACK__API_1g2fc6eb609d8345b59f58b5469e73e121" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_ResourceFunctionsLazyLoadedData::numFunctions</span></dt>
<dd class="description">
<div class="section">
<p> The size of the function array. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g306fed61e5fc1aefe907f67b6aeb3c7b" id="group__SANITIZER__CALLBACK__API_1g306fed61e5fc1aefe907f67b6aeb3c7b" shape="rect">
<!-- --></a><span>CUcontext Sanitizer_ResourceMemoryData::context</span></dt>
<dd class="description">
<div class="section">
<p> Context containing the allocation being created or destroyed. Can be NULL if the allocation is not attached to a context.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gc23e893ab78877ab395678c4dc1bddfa" id="group__SANITIZER__CALLBACK__API_1gc23e893ab78877ab395678c4dc1bddfa" shape="rect">
<!-- --></a><span>CUdevice Sanitizer_ResourceMemoryData::device</span></dt>
<dd class="description">
<div class="section">
<p> Device where the allocation is being created. Available for all cbid with a driver version of 455 or newer. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g7bee77cc4075471b0397cf557c843c4a" id="group__SANITIZER__CALLBACK__API_1g7bee77cc4075471b0397cf557c843c4a" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_ResourceMemoryData::flags</span></dt>
<dd class="description">
<div class="section">
<p> Allocation details: use Sanitizer_ResourceMemoryFlags to interpret this field. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g9cd401e3148076d3b5cabcdbf54f3f33" id="group__SANITIZER__CALLBACK__API_1g9cd401e3148076d3b5cabcdbf54f3f33" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_ResourceMemoryData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Stream containing the allocation being created or destroyed. Can be NULL if the allocation is not attached to a stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gbe9335a4874c70f9e8fdc287b8a14a38" id="group__SANITIZER__CALLBACK__API_1gbe9335a4874c70f9e8fdc287b8a14a38" shape="rect">
<!-- --></a><span>CUmemoryPool Sanitizer_ResourceMemoryData::memoryPool</span></dt>
<dd class="description">
<div class="section">
<p> Memory pool containing the allocation being created or destroyed. Can be NULL if the allocation is not attached to a memory
pool.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gfa68ea5df21d945ae35162a7573c4d61" id="group__SANITIZER__CALLBACK__API_1gfa68ea5df21d945ae35162a7573c4d61" shape="rect">
<!-- --></a><span>uint32_t Sanitizer_ResourceMemoryData::permissions</span></dt>
<dd class="description">
<div class="section">
<p> Allocation permissions: use Sanitizer_ResourceMemoryPermissions to interpret this field. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gf33b6cf45e80c06fc9130c719d6e13c7" id="group__SANITIZER__CALLBACK__API_1gf33b6cf45e80c06fc9130c719d6e13c7" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_ResourceMemoryData::size</span></dt>
<dd class="description">
<div class="section">
<p> Size of the allocation being created or destroyed. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g34ae0e07bbf2f9ae371d132c59138ce0" id="group__SANITIZER__CALLBACK__API_1g34ae0e07bbf2f9ae371d132c59138ce0" shape="rect">
<!-- --></a><span>CUdevice Sanitizer_ResourceMemoryData::sourceDevice</span></dt>
<dd class="description">
<div class="section">
<p> Source device of this allocation (different from device if SANITIZER_MEMORY_FLAG_PEER is set). </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gbb146be5d2857f1294a1af6edf28f6f5" id="group__SANITIZER__CALLBACK__API_1gbb146be5d2857f1294a1af6edf28f6f5" shape="rect">
<!-- --></a><span>CUstream Sanitizer_ResourceMemoryData::stream</span></dt>
<dd class="description">
<div class="section">
<p> Public handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g5838f90e131f6b6761c39986b9b6efd8" id="group__SANITIZER__CALLBACK__API_1g5838f90e131f6b6761c39986b9b6efd8" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__CALLBACK__API_1g62d02f306fdb955ab1f5add810c45564" title="Specifies the visibility of an allocation. " shape="rect">Sanitizer_MemoryVisibility</a> Sanitizer_ResourceMemoryData::visibility</span></dt>
<dd class="description">
<div class="section">
<p> Visibility of the allocation. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g9d01c7ed7b6d8b3ea539b530393edb43" id="group__SANITIZER__CALLBACK__API_1g9d01c7ed7b6d8b3ea539b530393edb43" shape="rect">
<!-- --></a><span>CUdevice Sanitizer_ResourceMempoolData::device</span></dt>
<dd class="description">
<div class="section">
<p> Device that owns the memory pool. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g60c827072502fc8e4aa10c8e8abd8e1b" id="group__SANITIZER__CALLBACK__API_1g60c827072502fc8e4aa10c8e8abd8e1b" shape="rect">
<!-- --></a><span>CUdevice Sanitizer_ResourceMempoolData::peerDevice</span></dt>
<dd class="description">
<div class="section">
<p> Device that access type changed. Available if cbid is SANITIZER_CBID_RESOURCE_MEMPOOL_PEER_ACCESS_ENABLED or SANITIZER_CBID_RESOURCE_MEMPOOL_PEER_ACCESS_DISABLING.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g4d94a109dba9f60ed5bae597ea93b2b7" id="group__SANITIZER__CALLBACK__API_1g4d94a109dba9f60ed5bae597ea93b2b7" shape="rect">
<!-- --></a><span>size_t Sanitizer_ResourceModuleData::cubinSize</span></dt>
<dd class="description">
<div class="section">
<p> The size of the cubin. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g0f7484826c1b8bb5f2eca75040fd44cc" id="group__SANITIZER__CALLBACK__API_1g0f7484826c1b8bb5f2eca75040fd44cc" shape="rect">
<!-- --></a><span>CUlibrary Sanitizer_ResourceModuleData::library</span></dt>
<dd class="description">
<div class="section">
<p> Library associated with the module. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g786e3c1a3f4f6d4611f7fa0b4093dca7" id="group__SANITIZER__CALLBACK__API_1g786e3c1a3f4f6d4611f7fa0b4093dca7" shape="rect">
<!-- --></a><span>CUmodule Sanitizer_ResourceModuleData::module</span></dt>
<dd class="description">
<div class="section">
<p> The module being loaded or unloaded. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g39bce574d2d1e1ef944c1090ce01b09a" id="group__SANITIZER__CALLBACK__API_1g39bce574d2d1e1ef944c1090ce01b09a" shape="rect">
<!-- --></a><span>const
char
* Sanitizer_ResourceModuleData::pCubin</span></dt>
<dd class="description">
<div class="section">
<p> Pointer to the associated cubin. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g17058d030f8c196b4a250148c3e2c662" id="group__SANITIZER__CALLBACK__API_1g17058d030f8c196b4a250148c3e2c662" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_ResourceStreamData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g9ac109c0cc16da3636538dfcebaeac33" id="group__SANITIZER__CALLBACK__API_1g9ac109c0cc16da3636538dfcebaeac33" shape="rect">
<!-- --></a><span>CUstream Sanitizer_ResourceStreamData::stream</span></dt>
<dd class="description">
<div class="section">
<p> The stream being created or destroyed. This handle will be NULL for the STREAM_DESTROY_FINISHED cbid. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g80d1ec50b68c93aa0657c833ece83c8e" id="group__SANITIZER__CALLBACK__API_1g80d1ec50b68c93aa0657c833ece83c8e" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_ResourceVirtualRange::size</span></dt>
<dd class="description">
<div class="section">
<p> Size of the VA range being reserved or released. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g1ef3eb36bdce259175dab94c3cee852d" id="group__SANITIZER__CALLBACK__API_1g1ef3eb36bdce259175dab94c3cee852d" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_SynchronizeData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g88f86980a41884a31acac2b04f1d42f9" id="group__SANITIZER__CALLBACK__API_1g88f86980a41884a31acac2b04f1d42f9" shape="rect">
<!-- --></a><span>CUstream Sanitizer_SynchronizeData::stream</span></dt>
<dd class="description">
<div class="section">
<p> This field is only valid for SANITIZER_CBID_SYNCHRONIZE_STREAM_SYNCHRONIZED. This is the stream being synchronized. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g1e8e80e5a6533ffea2ca5a435e0827fe" id="group__SANITIZER__CALLBACK__API_1g1e8e80e5a6533ffea2ca5a435e0827fe" shape="rect">
<!-- --></a><span>uint64_t Sanitizer_UvmData::address</span></dt>
<dd class="description">
<div class="section">
<p> The address of the allocation. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g0e5aefe3e911df95c5a4b6f0e227467e" id="group__SANITIZER__CALLBACK__API_1g0e5aefe3e911df95c5a4b6f0e227467e" shape="rect">
<!-- --></a><span>Sanitizer_StreamHandle Sanitizer_UvmData::hStream</span></dt>
<dd class="description">
<div class="section">
<p> Unique handle for the stream. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1ga2452503ea44bf5b345f230da98b9402" id="group__SANITIZER__CALLBACK__API_1ga2452503ea44bf5b345f230da98b9402" shape="rect">
<!-- --></a><span>CUstream Sanitizer_UvmData::stream</span></dt>
<dd class="description">
<div class="section">
<p> The stream on which the memory is attached. This is only valid if visibility is SANITIZER_MEMORY_VISIBILITY_STREAM </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g9c9d131f19f523c3c107ea5ea55f6676" id="group__SANITIZER__CALLBACK__API_1g9c9d131f19f523c3c107ea5ea55f6676" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__CALLBACK__API_1g62d02f306fdb955ab1f5add810c45564" title="Specifies the visibility of an allocation. " shape="rect">Sanitizer_MemoryVisibility</a> Sanitizer_UvmData::visibility</span></dt>
<dd class="description">
<div class="section">
<p> New visibility for the allocation. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gd71d9596f42c5280117c58aec28f7677" id="group__SANITIZER__CALLBACK__API_1gd71d9596f42c5280117c58aec28f7677" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1gd71d9596f42c5280117c58aec28f7677" shape="rect">blockDim_x</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1geaccddc162d325b688fb59813e854df6" id="group__SANITIZER__CALLBACK__API_1geaccddc162d325b688fb59813e854df6" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1geaccddc162d325b688fb59813e854df6" shape="rect">blockDim_y</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gdea40e9c9cab2e4b98b0e0abaf04ed7a" id="group__SANITIZER__CALLBACK__API_1gdea40e9c9cab2e4b98b0e0abaf04ed7a" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1gdea40e9c9cab2e4b98b0e0abaf04ed7a" shape="rect">blockDim_z</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gc83c9a72971e8b4fcbae6e5299a0bb52" id="group__SANITIZER__CALLBACK__API_1gc83c9a72971e8b4fcbae6e5299a0bb52" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1gc83c9a72971e8b4fcbae6e5299a0bb52" shape="rect">clusterDim_x</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb69bc0f86a204aef81bbb27ab3599121" id="group__SANITIZER__CALLBACK__API_1gb69bc0f86a204aef81bbb27ab3599121" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1gb69bc0f86a204aef81bbb27ab3599121" shape="rect">clusterDim_y</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g3d0219ba9537466c00a8d8d6f7fe5232" id="group__SANITIZER__CALLBACK__API_1g3d0219ba9537466c00a8d8d6f7fe5232" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1g3d0219ba9537466c00a8d8d6f7fe5232" shape="rect">clusterDim_z</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g934581cb477c3d030f30e2b2ee7944d4" id="group__SANITIZER__CALLBACK__API_1g934581cb477c3d030f30e2b2ee7944d4" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1g934581cb477c3d030f30e2b2ee7944d4" shape="rect">gridDim_x</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g66f032ce9b5eaac75a5993167cf282c8" id="group__SANITIZER__CALLBACK__API_1g66f032ce9b5eaac75a5993167cf282c8" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1g66f032ce9b5eaac75a5993167cf282c8" shape="rect">gridDim_y</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g9a0d553822926781996a01e8255ac049" id="group__SANITIZER__CALLBACK__API_1g9a0d553822926781996a01e8255ac049" shape="rect">
<!-- --></a><span>uint32_t <a href="modules.html" title="" shape="rect">SANITIZER_CALLBACK_API</a>::<a href="modules.html#group__SANITIZER__CALLBACK__API_1g9a0d553822926781996a01e8255ac049" shape="rect">gridDim_z</a> [inherited] </span></dt>
<dd class="description">
<div class="section">
<p> Launch properties of the grid. These values are only valid for SANITIZER_CBID_LAUNCH_BEGIN and graph node launch callbacks
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb77c324ee0c00b852188a048e8402292" id="group__SANITIZER__CALLBACK__API_1gb77c324ee0c00b852188a048e8402292" shape="rect">
<!-- --></a><span>struct <a href="annotated.html#structSanitizer__ResourceMemoryData" title="Data passed into a memory resource callback function. " shape="rect">Sanitizer_ResourceMemoryData</a> memAllocData</span></dt>
<dd class="description">
<div class="section">
<p> This is only valid if nodeType is CU_GRAPH_NODE_TYPE_MEM_ALLOC. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1gb14e45e0d7b3921b6e155308a54d7945" id="group__SANITIZER__CALLBACK__API_1gb14e45e0d7b3921b6e155308a54d7945" shape="rect">
<!-- --></a><span>uint64_t memFreeAddress</span></dt>
<dd class="description">
<div class="section">
<p> The freed device pointer This is only valid if nodeType is CU_GRAPH_NODE_TYPE_MEM_FREE. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g1da9f79bf2f871d07b357fc7e3da0c95" id="group__SANITIZER__CALLBACK__API_1g1da9f79bf2f871d07b357fc7e3da0c95" shape="rect">
<!-- --></a><span>struct <a href="annotated.html#structSanitizer__MemcpyData" title="Data passed into a memcpy callback function. " shape="rect">Sanitizer_MemcpyData</a> memcpyData</span></dt>
<dd class="description">
<div class="section">
<p> This is only valid if nodeType is CU_GRAPH_NODE_TYPE_MEMCPY. </p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__CALLBACK__API_1g47ec542f59cd0f3e8937121c006eefa2" id="group__SANITIZER__CALLBACK__API_1g47ec542f59cd0f3e8937121c006eefa2" shape="rect">
<!-- --></a><span>struct <a href="annotated.html#structSanitizer__MemsetData" title="Data passed into a memset callback function. " shape="rect">Sanitizer_MemsetData</a> memsetData</span></dt>
<dd class="description">
<div class="section">
<p> This is only valid if nodeType is CU_GRAPH_NODE_TYPE_MEMSET. </p>
</div>
</dd>
</dl>
</div>
</div>
<div class="topic reference apiRef apiPackage cppModule" id="group__SANITIZER__MEMORY__API"><a name="group__SANITIZER__MEMORY__API" shape="rect">
<!-- --></a><h3 class="topictitle3 cppModule">1.3. Sanitizer Memory API</h3>
<div class="section">
<p>Functions, types, and enums that implement the Sanitizer Memory API. </p>
</div>
<h4 class="fake_sectiontitle member_header">Functions</h4>
<dl class="members">
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__MEMORY__API_1gfa9f57591757dec33a5055948e30a836" shape="rect">sanitizerAlloc</a> ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, void**<span> </span><span class="keyword keyword apiItemName">devPtr</span>, size_t<span> </span><span class="keyword keyword apiItemName">size</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Allocate memory on the device. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__MEMORY__API_1g097b5e253039ac30a3b7fdb2f7de0481" shape="rect">sanitizerAllocHost</a> ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, void**<span> </span><span class="keyword keyword apiItemName">devPtr</span>, size_t<span> </span><span class="keyword keyword apiItemName">size</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Allocate host pinned memory. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__MEMORY__API_1g389679a46d26affa64a0d4bef69a3c33" shape="rect">sanitizerFree</a> ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, void*<span> </span><span class="keyword keyword apiItemName">devPtr</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Frees memory on the device. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__MEMORY__API_1gc2d870dddb001b8cac728fb0ed6727a7" shape="rect">sanitizerFreeHost</a> ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, void*<span> </span><span class="keyword keyword apiItemName">devPtr</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Frees host memory. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__MEMORY__API_1g6f7fea96823fa4b2593361f4817848a8" shape="rect">sanitizerMemcpyDeviceToHost</a> ( void*<span> </span><span class="keyword keyword apiItemName">dst</span>, void*<span> </span><span class="keyword keyword apiItemName">src</span>, size_t<span> </span><span class="keyword keyword apiItemName">count</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Copies data from device to host. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__MEMORY__API_1g98efdd36e482d83b73b23d31a16849ff" shape="rect">sanitizerMemcpyHostToDeviceAsync</a> ( void*<span> </span><span class="keyword keyword apiItemName">dst</span>, void*<span> </span><span class="keyword keyword apiItemName">src</span>, size_t<span> </span><span class="keyword keyword apiItemName">count</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Copies data from host to device. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__MEMORY__API_1gd2c72da4658a49c8a0b0c6ba4110e2bc" shape="rect">sanitizerMemset</a> ( void*<span> </span><span class="keyword keyword apiItemName">devPtr</span>, int <span> </span><span class="keyword keyword apiItemName">value</span>, size_t<span> </span><span class="keyword keyword apiItemName">count</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Initializes or sets device memory to a value. </span></dd>
</dl>
<div class="description">
<h4 class="sectiontitle">Functions</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__MEMORY__API_1gfa9f57591757dec33a5055948e30a836" id="group__SANITIZER__MEMORY__API_1gfa9f57591757dec33a5055948e30a836" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerAlloc ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, void**<span> </span><span class="keyword keyword apiItemName">devPtr</span>, size_t<span> </span><span class="keyword keyword apiItemName">size</span> ) </span></dt>
<dd class="description">
<div class="section">Allocate memory on the device. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">ctx</span></tt></dt>
<dd>Context for the allocation. If NULL, the current context will be used. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">devPtr</span></tt></dt>
<dd>Pointer to allocated device memory </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">size</span></tt></dt>
<dd>Allocation size in bytes </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Equivalent of cudaMalloc that can be called within a callback function. </p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__MEMORY__API_1g097b5e253039ac30a3b7fdb2f7de0481" id="group__SANITIZER__MEMORY__API_1g097b5e253039ac30a3b7fdb2f7de0481" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerAllocHost ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, void**<span> </span><span class="keyword keyword apiItemName">devPtr</span>, size_t<span> </span><span class="keyword keyword apiItemName">size</span> ) </span></dt>
<dd class="description">
<div class="section">Allocate host pinned memory. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">ctx</span></tt></dt>
<dd>Context for the allocation. If NULL, the current context will be used. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">devPtr</span></tt></dt>
<dd>Pointer to allocated host memory </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">size</span></tt></dt>
<dd>Allocation size in bytes </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Equivalent of cudaMallocHost that can be called within a callback function. </p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__MEMORY__API_1g389679a46d26affa64a0d4bef69a3c33" id="group__SANITIZER__MEMORY__API_1g389679a46d26affa64a0d4bef69a3c33" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerFree ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, void*<span> </span><span class="keyword keyword apiItemName">devPtr</span> ) </span></dt>
<dd class="description">
<div class="section">Frees memory on the device. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">ctx</span></tt></dt>
<dd>Context for the allocation. If NULL, the current context will be used. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">devPtr</span></tt></dt>
<dd>Device pointer to memory to free </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Equivalent of cudaFree that can be called within a callback function. </p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__MEMORY__API_1gc2d870dddb001b8cac728fb0ed6727a7" id="group__SANITIZER__MEMORY__API_1gc2d870dddb001b8cac728fb0ed6727a7" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerFreeHost ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, void*<span> </span><span class="keyword keyword apiItemName">devPtr</span> ) </span></dt>
<dd class="description">
<div class="section">Frees host memory. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">ctx</span></tt></dt>
<dd>Context for the allocation. If NULL, the current context will be used. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">devPtr</span></tt></dt>
<dd>Host pointer to memory to free </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Equivalent of cudaFreeHost that can be called within a callback function. </p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__MEMORY__API_1g6f7fea96823fa4b2593361f4817848a8" id="group__SANITIZER__MEMORY__API_1g6f7fea96823fa4b2593361f4817848a8" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerMemcpyDeviceToHost ( void*<span> </span><span class="keyword keyword apiItemName">dst</span>, void*<span> </span><span class="keyword keyword apiItemName">src</span>, size_t<span> </span><span class="keyword keyword apiItemName">count</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="description">
<div class="section">Copies data from device to host. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">dst</span></tt></dt>
<dd>Destination memory address </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">src</span></tt></dt>
<dd>Source memory address </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">count</span></tt></dt>
<dd>Size in bytes to copy </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">stream</span></tt></dt>
<dd>Stream handle. If NULL, the NULL stream will be used. </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Equivalent of cudaMemcpy that can be called within a callback function. The function will return once the copy has completed.
</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__MEMORY__API_1g98efdd36e482d83b73b23d31a16849ff" id="group__SANITIZER__MEMORY__API_1g98efdd36e482d83b73b23d31a16849ff" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerMemcpyHostToDeviceAsync ( void*<span> </span><span class="keyword keyword apiItemName">dst</span>, void*<span> </span><span class="keyword keyword apiItemName">src</span>, size_t<span> </span><span class="keyword keyword apiItemName">count</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="description">
<div class="section">Copies data from host to device. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">dst</span></tt></dt>
<dd>Destination memory address </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">src</span></tt></dt>
<dd>Source memory address </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">count</span></tt></dt>
<dd>Size in bytes to copy </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">stream</span></tt></dt>
<dd>Stream handle. If NULL, the NULL stream will be used. </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Equivalent of cudaMemcpyAsync that can be called within a callback function. The function will return once the pageable buffer
has been copied to the staging memory for DMA transfer to device memory, but the DMA to final destination may not have completed.
</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__MEMORY__API_1gd2c72da4658a49c8a0b0c6ba4110e2bc" id="group__SANITIZER__MEMORY__API_1gd2c72da4658a49c8a0b0c6ba4110e2bc" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerMemset ( void*<span> </span><span class="keyword keyword apiItemName">devPtr</span>, int <span> </span><span class="keyword keyword apiItemName">value</span>, size_t<span> </span><span class="keyword keyword apiItemName">count</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="description">
<div class="section">Initializes or sets device memory to a value. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">devPtr</span></tt></dt>
<dd>Pointer to device memory </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">value</span></tt></dt>
<dd>value to set for each byte of specified memory </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">count</span></tt></dt>
<dd>Size in bytes to set </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">stream</span></tt></dt>
<dd>Stream handle. If NULL, the NULL stream will be used. </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Equivalent of cudaMemset that can be called within a callback function. </p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
</dl>
</div>
</div>
<div class="topic reference apiRef apiPackage cppModule" id="group__SANITIZER__PATCHING__API"><a name="group__SANITIZER__PATCHING__API" shape="rect">
<!-- --></a><h3 class="topictitle3 cppModule">1.4. Sanitizer Patching API</h3>
<div class="section">
<p>Functions, types, and enums that implement the Sanitizer Patching API. </p>
</div>
<h4 class="fake_sectiontitle member_header">Typedefs</h4>
<dl class="members">
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g0fba3d83b1e80f4952daface7abfe700" shape="rect">SanitizerCallbackAsyncReduction</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t address</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t mbarAddress</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for an asynchronous reduction operation on shared memory. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1gb26c43f7f3e5db5bef6fdc09b252da74" shape="rect">SanitizerCallbackAsyncStore</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t address</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t mbarAddress</span>, void*
<span> </span><span class="keyword keyword apiItemName">pNewValue</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for an asynchronous store operation on shared memory. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g4b7e57672cf60e7ae4ac55176d2ab834" shape="rect">SanitizerCallbackBarrier</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t barIndex</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t threadCount</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a barrier callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g4aab2ddf5dc879434f2201c1f4da15cb" shape="rect">SanitizerCallbackBlockEnter</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a CUDA block enter callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g6d29c0ef356ff8cf83528d6089890e1a" shape="rect">SanitizerCallbackBlockExit</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a CUDA block exit callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1gd27afbd55db59626f334bdd6637166ca" shape="rect">SanitizerCallbackCacheControl</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">address</span>, <span> </span><span class="keyword keyword apiItemName">Sanitizer_CacheControlInstructionKind kind</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a cache control instruction callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g232756bcf8464f0f4807345b3c87ce81" shape="rect">SanitizerCallbackCall</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t targetPc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a function call callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g9cc64b7328eb0f0a1ef870510205fa91" shape="rect">SanitizerCallbackClusterBarrierArrive</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a cluster barrier arrive. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1gf41edf6c7d09b74218d43e5021bc9687" shape="rect">SanitizerCallbackCudaBarrier</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">barrier</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t kind</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t data</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a CUDA Barrier action callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g353c3b8eac7e039c38ddc14d730fc495" shape="rect">SanitizerCallbackDeviceSideFree</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">ptr</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a device-side free call. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g4d2f17557934af858ce29328fed19e3f" shape="rect">SanitizerCallbackDeviceSideMalloc</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">allocatedPtr</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t allocatedSize</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a device-side malloc call. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1gad3a4de1d22335b4ff75ad35b053e90e" shape="rect">SanitizerCallbackMatrixMemoryAccess</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t address</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t count</span>, const void*
<span> </span><span class="keyword keyword apiItemName">pNewValue</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a matrix shared memory access callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1ga0d4e0f597f312316ba67da32205bc32" shape="rect">SanitizerCallbackMemcpyAsync</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">src</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t dst</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a global to shared memory asynchronous copy. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g8a1bd23f33fc9c6d46b5a2a13450d09e" shape="rect">SanitizerCallbackMemoryAccess</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">ptr</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span>, const void*
<span> </span><span class="keyword keyword apiItemName">pData</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a memory access callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g5d226611ac5c197b1dcb78c28a15eb6a" shape="rect">SanitizerCallbackPipelineCommit</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a pipeline commit. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g5f8f2bea7cfd5b0b99e9de7ae9010b14" shape="rect">SanitizerCallbackPipelineWait</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t groups</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a pipeline wait. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1gd18d7759b00b28bbbbfb5279261c8cc9" shape="rect">SanitizerCallbackRet</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a function return callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g5e414ff9746a4379f0de7a82a120e192" shape="rect">SanitizerCallbackSetSmemSize</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t size</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for setting the shared memory size allocated to a block. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g7d14e7f12b6f9fd9c5f1f5324b3e9c58" shape="rect">SanitizerCallbackShfl</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a shfl callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1gba999e65bfd8fc65771f12a98b6d6de3" shape="rect">SanitizerCallbackSyncwarp</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t mask</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a syncwarp callback. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g6047da6fd6a63f97a0d40c3cfd044d27" shape="rect">SanitizerCallbackWarpgroupFence</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t warpMask</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a warpgroup MMA fence. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g86c587880067e7498f8168c26a49cb47" shape="rect">SanitizerCallbackWarpgroupMMAAsync</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t addressMatrixA</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t sizeMatrixA</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t addressMatrixB</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t sizeMatrixB</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t warpMask</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a warpgroup aligned async MMA. </span></dd>
<dt><span class="member_long_type">typedef
<a href="modules.html#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" title="Sanitizer patch result codes. " shape="rect">SanitizerPatchResult</a>*
</span><span class="member_name_long_type">( *<a href="#group__SANITIZER__PATCHING__API_1g86d8776713ae5a7b693f9b62751a546e" shape="rect">SanitizerCallbackWarpgroupWaitGroup</a> )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t numGroups</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t warpMask</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Function type for a warpgroup MMA wait group. </span></dd>
</dl>
<h4 class="fake_sectiontitle member_header">Enumerations</h4>
<dl class="members">
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" shape="rect">SanitizerPatchResult</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Sanitizer patch result codes. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g22dc34eb2f89b61aa2a8535c8c089209" shape="rect">Sanitizer_BarrierFlags</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Flags describing a barrier. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1gd3bcfc1a9d22465613ada149c757b5db" shape="rect">Sanitizer_CacheControlInstructionKind</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Cache control action. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g2c82c2446853ee79b55d71b098181ca1" shape="rect">Sanitizer_CallFlags</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Flags describing a function call. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g505b1abbfde6d1d66fba877f5ce9b5f3" shape="rect">Sanitizer_CudaBarrierInstructionKind</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">CUDA Barrier action kind. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1ga177905ebbb1a243f0784662d6de9c0e" shape="rect">Sanitizer_DeviceMemoryFlags</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Flags describing a memory access. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g25af2e64f4c5e2a4e012edb4bb991dcf" shape="rect">Sanitizer_InstructionId</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Instrumentation. </span></dd>
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1gcec4a303dd18b91d32ba1bcabf7296e9" shape="rect">Sanitizer_WarpgroupMMAAsyncFlags</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Flags describing a warpgroup aligned MMA async. </span></dd>
</dl>
<h4 class="fake_sectiontitle member_header">Functions</h4>
<dl class="members">
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g9d63f4e3663fc4ce4558668afc151a39" shape="rect">sanitizerAddPatches</a> ( const void*<span> </span><span class="keyword keyword apiItemName">image</span>, CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Load a module containing patches that can be used by the patching API. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g04ea679ab0708224d366c48e651e40ef" shape="rect">sanitizerAddPatchesFromFile</a> ( const char*<span> </span><span class="keyword keyword apiItemName">filename</span>, CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Load a module containing patches that can be used by the patching API. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g8a243dfc09dc2f676114409039a3e80d" shape="rect">sanitizerGetCallbackPcAndSize</a> ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, const char*<span> </span><span class="keyword keyword apiItemName">deviceCallbackName</span>, uint64_t*<span> </span><span class="keyword keyword apiItemName">pc</span>, uint64_t*<span> </span><span class="keyword keyword apiItemName">size</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Get PC and size of a device callback. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1gc22100c2f92a845e6526fb837027222f" shape="rect">sanitizerGetFunctionLoadedStatus</a> ( CUfunction<span> </span><span class="keyword keyword apiItemName">func</span>, <a href="modules.html#group__SANITIZER__PATCHING__API_1g7378dfd4f3c8d5f315e733e0243ae46d" title="" shape="rect">Sanitizer_FunctionLoadedStatus</a>*<span> </span><span class="keyword keyword apiItemName">loadingStatus</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Get the loading status of a function. Requires a driver version >=515. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g505e9ee66db67d02d15c47b874859545" shape="rect">sanitizerGetFunctionPcAndSize</a> ( CUmodule<span> </span><span class="keyword keyword apiItemName">module</span>, const char*<span> </span><span class="keyword keyword apiItemName">functionName</span>, uint64_t*<span> </span><span class="keyword keyword apiItemName">pc</span>, uint64_t*<span> </span><span class="keyword keyword apiItemName">size</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Get PC and size of a CUDA function. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g4047e8742dc65935c2ab45d19a53b850" shape="rect">sanitizerPatchInstructions</a> ( const <a href="modules.html#group__SANITIZER__PATCHING__API_1g25af2e64f4c5e2a4e012edb4bb991dcf" title="Instrumentation. " shape="rect">Sanitizer_InstructionId</a><span> </span><span class="keyword keyword apiItemName">instructionId</span>, CUmodule<span> </span><span class="keyword keyword apiItemName">module</span>, const char*<span> </span><span class="keyword keyword apiItemName">deviceCallbackName</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Set instrumentation points and patches to be applied in a module. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" shape="rect">sanitizerPatchModule</a> ( CUmodule<span> </span><span class="keyword keyword apiItemName">module</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Perform the actual instrumentation of a module. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g55712541951d15f51e8c294382f91be0" shape="rect">sanitizerSetCallbackData</a> ( CUfunction<span> </span><span class="keyword keyword apiItemName">kernel</span>, const void*<span> </span><span class="keyword keyword apiItemName">userdata</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Specifies the user data pointer for callbacks. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1gb935b39b1985cd49ac7bdfa181b88def" shape="rect">sanitizerSetDeviceGraphData</a> ( CUgraphExec<span> </span><span class="keyword keyword apiItemName">graphExec</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span>, const void*<span> </span><span class="keyword keyword apiItemName">userdata</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Specifies the user data pointer accessible from callbacks in the device-launched graphs launched by the specified host-launched
graphExec. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1ge0ea84fc8d9b9a2a514826be53ef2b14" shape="rect">sanitizerSetLaunchCallbackData</a> ( Sanitizer_LaunchHandle<span> </span><span class="keyword keyword apiItemName">launch</span>, CUfunction<span> </span><span class="keyword keyword apiItemName">kernel</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span>, const void*<span> </span><span class="keyword keyword apiItemName">userdata</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Specifies the user data pointer for callbacks. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__PATCHING__API_1g5ac4eb8e7b484ac3e70c459413791b22" shape="rect">sanitizerUnpatchModule</a> ( CUmodule<span> </span><span class="keyword keyword apiItemName">module</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Remove existing instrumentation of a module. </span></dd>
</dl>
<div class="description">
<h4 class="sectiontitle">Typedefs</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g0fba3d83b1e80f4952daface7abfe700" id="group__SANITIZER__PATCHING__API_1g0fba3d83b1e80f4952daface7abfe700" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackAsyncReduction )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t address</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t mbarAddress</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for an asynchronous reduction operation on shared memory. This can be generated by a red.async PTX instruction</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a>. <tt class="ph tt code">pc</tt> is the program counter of the patched instruction. <tt class="ph tt code">address</tt> is the destination address in shared memory. <tt class="ph tt code">mbarAddress</tt> is the address of the mbarrier object. <tt class="ph tt code">accessSize</tt> is the size of the access in bytes. Valid values are 4 and 8.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gb26c43f7f3e5db5bef6fdc09b252da74" id="group__SANITIZER__PATCHING__API_1gb26c43f7f3e5db5bef6fdc09b252da74" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackAsyncStore )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t address</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t mbarAddress</span>, void*
<span> </span><span class="keyword keyword apiItemName">pNewValue</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for an asynchronous store operation on shared memory. This can be generated by a st.async PTX instruction</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a>. <tt class="ph tt code">pc</tt> is the program counter of the patched instruction. <tt class="ph tt code">address</tt> is the destination address in shared memory. <tt class="ph tt code">mbarAddress</tt> is the address of the mbarrier object. <tt class="ph tt code">pNewValue</tt> is a pointer to the new value being written. <tt class="ph tt code">accessSize</tt> is the size of the access in bytes. Valid values are 4 and 8.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g4b7e57672cf60e7ae4ac55176d2ab834" id="group__SANITIZER__PATCHING__API_1g4b7e57672cf60e7ae4ac55176d2ab834" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackBarrier )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t barIndex</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t threadCount</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a barrier callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">barIndex</tt> is the barrier index. <tt class="ph tt code">threadCount</tt> is the number of expected threads (must be a multiple of the warp size). <tt class="ph tt code">flags</tt> contains information about the barrier. See Sanitizer_BarrierFlags to interpret this value. 0 means that all threads are
participating in the barrier.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g4aab2ddf5dc879434f2201c1f4da15cb" id="group__SANITIZER__PATCHING__API_1g4aab2ddf5dc879434f2201c1f4da15cb" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackBlockEnter )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a CUDA block enter callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the entry point of the block
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g6d29c0ef356ff8cf83528d6089890e1a" id="group__SANITIZER__PATCHING__API_1g6d29c0ef356ff8cf83528d6089890e1a" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackBlockExit )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a CUDA block exit callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gd27afbd55db59626f334bdd6637166ca" id="group__SANITIZER__PATCHING__API_1gd27afbd55db59626f334bdd6637166ca" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackCacheControl )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">address</span>, <span> </span><span class="keyword keyword apiItemName">Sanitizer_CacheControlInstructionKind kind</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a cache control instruction callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">address</tt> is the address of the memory being controlled <tt class="ph tt code">kind</tt> is the type of cache control. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1gd3bcfc1a9d22465613ada149c757b5db" title="Cache control action." shape="rect">Sanitizer_CacheControlInstructionKind</a></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g232756bcf8464f0f4807345b3c87ce81" id="group__SANITIZER__PATCHING__API_1g232756bcf8464f0f4807345b3c87ce81" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackCall )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t targetPc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a function call callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">targetPc</tt> is the PC where the called function is located. <tt class="ph tt code">flags</tt> contains information about the function call.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g9cc64b7328eb0f0a1ef870510205fa91" id="group__SANITIZER__PATCHING__API_1g9cc64b7328eb0f0a1ef870510205fa91" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackClusterBarrierArrive )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a cluster barrier arrive. Function type for a cluster barrier wait.</p>
<p class="p">This can be generated by a cg::this_cluster().sync() (C++ API), or a barrier.cluster.arrive (PTX API).</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction
</p>
<p class="p">This can be generated by a cg::this_cluster().sync() (C++ API), or a barrier.cluster.wait (PTX API).</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gf41edf6c7d09b74218d43e5021bc9687" id="group__SANITIZER__PATCHING__API_1gf41edf6c7d09b74218d43e5021bc9687" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackCudaBarrier )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">barrier</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t kind</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t data</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a CUDA Barrier action callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">barrier</tt> Barrier address which can be used as a unique identifier <tt class="ph tt code">kind</tt> Barrier action type. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g505b1abbfde6d1d66fba877f5ce9b5f3" title="CUDA Barrier action kind." shape="rect">Sanitizer_CudaBarrierInstructionKind</a><tt class="ph tt code">data</tt> Barrier data. This is specific to each action type, refer to <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g505b1abbfde6d1d66fba877f5ce9b5f3" title="CUDA Barrier action kind." shape="rect">Sanitizer_CudaBarrierInstructionKind</a></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g353c3b8eac7e039c38ddc14d730fc495" id="group__SANITIZER__PATCHING__API_1g353c3b8eac7e039c38ddc14d730fc495" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackDeviceSideFree )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">ptr</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a device-side free call.
<div class="note note"><span class="notetitle">Note:</span><p class="p">This is called prior to the actual call.</p>
</div>
</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">ptr</tt> is the pointer passed to device-side free.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g4d2f17557934af858ce29328fed19e3f" id="group__SANITIZER__PATCHING__API_1g4d2f17557934af858ce29328fed19e3f" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackDeviceSideMalloc )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">allocatedPtr</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t allocatedSize</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a device-side malloc call.
<div class="note note"><span class="notetitle">Note:</span><p class="p">This is called after the call has completed.</p>
</div>
</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">allocatedPtr</tt> is the pointer returned by device-side malloc <tt class="ph tt code">allocatedSize</tt> is the size requested by the user to device-side malloc.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gad3a4de1d22335b4ff75ad35b053e90e" id="group__SANITIZER__PATCHING__API_1gad3a4de1d22335b4ff75ad35b053e90e" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackMatrixMemoryAccess )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t address</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t count</span>, const void*
<span> </span><span class="keyword keyword apiItemName">pNewValue</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a matrix shared memory access callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">address</tt> is the address of the shared memory being read or written. This is an offset within the shared memory window <tt class="ph tt code">accessSize</tt> is the size of the access in bytes. Valid value is 16. <tt class="ph tt code">flags</tt> contains information about the type of access. See Sanitizer_DeviceMemoryFlags to interpret this value. <tt class="ph tt code">count</tt> is the number of matrices accessed. <tt class="ph tt code">pNewValue</tt> is a pointer to the new value being written if the access is a write. If the access is a read or an atomic, the pointer will
be NULL.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1ga0d4e0f597f312316ba67da32205bc32" id="group__SANITIZER__PATCHING__API_1ga0d4e0f597f312316ba67da32205bc32" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackMemcpyAsync )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">src</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t dst</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a global to shared memory asynchronous copy.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">src</tt> is the address of the global memory being read. This can be NULL if src-size is 0. <tt class="ph tt code">dst</tt> is the address of the shared memory being written. This is an offset within the shared memory window <tt class="ph tt code">accessSize</tt> is the size of the access in bytes. Valid values are 4, 8 and 16.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g8a1bd23f33fc9c6d46b5a2a13450d09e" id="group__SANITIZER__PATCHING__API_1g8a1bd23f33fc9c6d46b5a2a13450d09e" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackMemoryAccess )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, void*
<span> </span><span class="keyword keyword apiItemName">ptr</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t accessSize</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span>, const void*
<span> </span><span class="keyword keyword apiItemName">pData</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a memory access callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">ptr</tt> is the address of the memory being accessed. For local or shared memory access, this is the offset within the local or shared
memory window. <tt class="ph tt code">accessSize</tt> is the size of the access in bytes. Valid values are 1, 2, 4, 8, and 16. <tt class="ph tt code">flags</tt> contains information about the type of access. See Sanitizer_DeviceMemoryFlags to interpret this value. <tt class="ph tt code">pData</tt> is a pointer which value depends on the type of access:
<ul class="ul">
<li class="li">
<p class="p">If the access is a write, <tt class="ph tt code">pData</tt> points to the new value being written.
</p>
</li>
<li class="li">
<p class="p">If the access is a read and <tt class="ph tt code">pData</tt> is not <tt class="ph tt code">NULL</tt>, then it points to a 32-bit mask of loaded bytes being used (padding bytes will not appear).
</p>
</li>
<li class="li">
<p class="p">If the access is an atomic, the pointer will be <tt class="ph tt code">NULL</tt>.
</p>
</li>
</ul>
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g5d226611ac5c197b1dcb78c28a15eb6a" id="group__SANITIZER__PATCHING__API_1g5d226611ac5c197b1dcb78c28a15eb6a" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackPipelineCommit )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a pipeline commit. This can be generated by a pipeline::producer_commit (C++ API), a pipeline_commit (C
API) or a cp.async.commit_group (PTX API).
</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g5f8f2bea7cfd5b0b99e9de7ae9010b14" id="group__SANITIZER__PATCHING__API_1g5f8f2bea7cfd5b0b99e9de7ae9010b14" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackPipelineWait )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t groups</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a pipeline wait. This can be generated by a pipeline::consumer_wait (C++ API), a pipeline_wait_prior (C
API), cp.async.wait_group or cp.async.wait_all (PTX API).
</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">groups</tt> is the number of groups the pipeline will wait for. 0 is used to wait for all groups.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gd18d7759b00b28bbbbfb5279261c8cc9" id="group__SANITIZER__PATCHING__API_1gd18d7759b00b28bbbbfb5279261c8cc9" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackRet )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a function return callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g5e414ff9746a4379f0de7a82a120e192" id="group__SANITIZER__PATCHING__API_1g5e414ff9746a4379f0de7a82a120e192" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackSetSmemSize )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t size</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for setting the shared memory size allocated to a block. This can be generated by a setsmemsize.sync instruction</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a>. <tt class="ph tt code">pc</tt> is the program counter of the patched instruction. <tt class="ph tt code">size</tt> is the requested size in bytes.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g7d14e7f12b6f9fd9c5f1f5324b3e9c58" id="group__SANITIZER__PATCHING__API_1g7d14e7f12b6f9fd9c5f1f5324b3e9c58" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackShfl )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a shfl callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gba999e65bfd8fc65771f12a98b6d6de3" id="group__SANITIZER__PATCHING__API_1gba999e65bfd8fc65771f12a98b6d6de3" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackSyncwarp )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t mask</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a syncwarp callback.
<tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">mask</tt> is the thread mask passed to __syncwarp().
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g6047da6fd6a63f97a0d40c3cfd044d27" id="group__SANITIZER__PATCHING__API_1g6047da6fd6a63f97a0d40c3cfd044d27" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackWarpgroupFence )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t warpMask</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a warpgroup MMA fence. This can be generated by a wgmma.fence in PTX.</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a>. <tt class="ph tt code">pc</tt> is the program counter of the patched instruction. <tt class="ph tt code">warpMask</tt> is a mask of threads that will perform the fence operation. Expected values are either 0x0 or 0xffffffff (full). The value
is expected to be the same across the warpgroup. Other values can be reported but signal a programming error in the target
application.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g86c587880067e7498f8168c26a49cb47" id="group__SANITIZER__PATCHING__API_1g86c587880067e7498f8168c26a49cb47" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackWarpgroupMMAAsync )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t addressMatrixA</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t sizeMatrixA</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t addressMatrixB</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t sizeMatrixB</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t flags</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t warpMask</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a warpgroup aligned async MMA. This can be generated by a wgmma.mma_async in PTX.</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a><tt class="ph tt code">pc</tt> is the program counter of the patched instruction <tt class="ph tt code">addressMatrixA</tt> is the address in shared memory of the matrix A being read. This field is only valid if sizeMatrixA is non-zero and warpMask
is full. <tt class="ph tt code">sizeMatrixA</tt> is the size of the matrix A in shared memory. A value of 0 means that the matrix A is read from registers instead. <tt class="ph tt code">addressMatrixB</tt> is the address in shared memory of the matrix B being read. This field is only valid if warpMask is full. <tt class="ph tt code">sizeMatrixB</tt> is the size of the matrix B in shared memory. The value will always be non-zero. <tt class="ph tt code">flags</tt> of type Sanitizer_WarpgroupMMAAsyncFlags provide information about the access. These flags are to be taken into account even
if the warpMask is zero. <tt class="ph tt code">warpMask</tt> is a mask of threads that will perform the operation and read the operands. Expected values are either 0x0 or 0xffffffff
(full). The value is expected to be the same across the warpgroup. Other values can be reported but signal a programming error
in the target application.
</p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g86d8776713ae5a7b693f9b62751a546e" id="group__SANITIZER__PATCHING__API_1g86d8776713ae5a7b693f9b62751a546e" shape="rect">
<!-- --></a><span>
SanitizerPatchResult*
( *SanitizerCallbackWarpgroupWaitGroup )( void*
<span> </span><span class="keyword keyword apiItemName">userdata</span>, <span> </span><span class="keyword keyword apiItemName">uint64_t pc</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t numGroups</span>, <span> </span><span class="keyword keyword apiItemName">uint32_t warpMask</span> ) </span></dt>
<dd class="description">
<div class="section">
<p>Function type for a warpgroup MMA wait group. This can be generated by a wgmma.wait_group in PTX.</p>
<p class="p"><tt class="ph tt code">userdata</tt> is a pointer to user data. See <a class="xref" href="modules.html#group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" title="Perform the actual instrumentation of a module." shape="rect">sanitizerPatchModule</a>. <tt class="ph tt code">pc</tt> is the program counter of the patched instruction. <tt class="ph tt code">numGroups</tt> is the maximum number of group that will be left pending after the operation. A value of zero means that all MMA async of
the warpgroup are guaranteed to have completed after the operation. <tt class="ph tt code">warpMask</tt> is a mask of threads for which the expected values are either 0x0 or 0xffffffff (full). The value is expected to be the same
across the warpgroup. Other values can be reported but signal a programming error in the target application. If the value
is valid, the value has no influence on the operation.
</p>
</div>
</dd>
</dl>
</div>
<div class="description">
<h4 class="sectiontitle">Enumerations</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" id="group__SANITIZER__PATCHING__API_1g3db35bcf534fa726680c73ba242b2e70" shape="rect">
<!-- --></a><span>enum SanitizerPatchResult</span></dt>
<dd class="description">
<div class="section">
<p>Error and result codes returned by Sanitizer patches. If a patch returns SANITIZER_PATCH_ERROR, the thread will be exited.
On Volta and newer architectures, the full warp which the thread belongs to will be exited.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_PATCH_SUCCESS = <span class="ph ph apiData">0</span></span></dt>
<dd>No error. </dd>
<dt><span class="enum-member-name-def">SANITIZER_PATCH_ERROR = <span class="ph ph apiData">1</span></span></dt>
<dd>An error was detected in the patch. </dd>
<dt><span class="enum-member-name-def">SANITIZER_PATCH_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g22dc34eb2f89b61aa2a8535c8c089209" id="group__SANITIZER__PATCHING__API_1g22dc34eb2f89b61aa2a8535c8c089209" shape="rect">
<!-- --></a><span>enum Sanitizer_BarrierFlags</span></dt>
<dd class="description">
<div class="section">
<p>Flags describing a barrier. These values are to be or-combined in the value of <strong class="ph b">flags</strong> for a SanitizerCallbackBarrier callback.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_BARRIER_FLAG_NONE = <span class="ph ph apiData">0</span></span></dt>
<dd>Empty flag. </dd>
<dt><span class="enum-member-name-def">SANITIZER_BARRIER_FLAG_UNALIGNED_ALLOWED = <span class="ph ph apiData">0x1</span></span></dt>
<dd>Specifies that the barrier can be called unaligned. This flag is only valid on SM 7.0 and above. </dd>
<dt><span class="enum-member-name-def">SANITIZER_BARRIER_FLAG_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gd3bcfc1a9d22465613ada149c757b5db" id="group__SANITIZER__PATCHING__API_1gd3bcfc1a9d22465613ada149c757b5db" shape="rect">
<!-- --></a><span>enum Sanitizer_CacheControlInstructionKind</span></dt>
<dd class="description">
<div class="section">
<p></p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CACHE_CONTROL_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid action ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CACHE_CONTROL_L1_PREFETCH = <span class="ph ph apiData">1</span></span></dt>
<dd>Prefetch to L1. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CACHE_CONTROL_L2_PREFETCH = <span class="ph ph apiData">2</span></span></dt>
<dd>Prefetch to L2. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CACHE_CONTROL_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g2c82c2446853ee79b55d71b098181ca1" id="group__SANITIZER__PATCHING__API_1g2c82c2446853ee79b55d71b098181ca1" shape="rect">
<!-- --></a><span>enum Sanitizer_CallFlags</span></dt>
<dd class="description">
<div class="section">
<p>Flags describing a function call. These values are to be or-combined in the value of <strong class="ph b">flags</strong> for a SanitizerCallbackCall callback.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CALL_FLAG_NONE = <span class="ph ph apiData">0</span></span></dt>
<dd>Empty flag. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CALL_FLAG_UNALIGNED_ALLOWED = <span class="ph ph apiData">0x1</span></span></dt>
<dd>Specifies that barriers within this function call can be called unaligned. This flag is only valid on SM 7.0 and above. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CALL_FLAG_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g505b1abbfde6d1d66fba877f5ce9b5f3" id="group__SANITIZER__PATCHING__API_1g505b1abbfde6d1d66fba877f5ce9b5f3" shape="rect">
<!-- --></a><span>enum Sanitizer_CudaBarrierInstructionKind</span></dt>
<dd class="description">
<div class="section">
<p>Refer to the CUDA Barrier interface section of the CUDA toolkit documentation for a more extensive description of these actions.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid action ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_INIT = <span class="ph ph apiData">1</span></span></dt>
<dd>Barrier initialization. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_ARRIVE = <span class="ph ph apiData">2</span></span></dt>
<dd>Barrier arrive operation. On Hopper and newer architectures, barrier data is the count argument to the arrive-on operation.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_ARRIVE_DROP = <span class="ph ph apiData">3</span></span></dt>
<dd>Barrier arrive and drop operation. On Hopper and newer architectures, barrier data is the count argument to the arrive-on
operation.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_ARRIVE_NOCOMPLETE = <span class="ph ph apiData">4</span></span></dt>
<dd>Barrier arrive operation without phase completion. Barrier data is the count argument to the arrive-on operation. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_ARRIVE_DROP_NOCOMPLETE = <span class="ph ph apiData">5</span></span></dt>
<dd>Barrier arrive and drop operation without phase completion. Barrier data is the count argument to the arrive-on operation.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_WAIT = <span class="ph ph apiData">6</span></span></dt>
<dd>Barrier wait operation. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_INVALIDATE = <span class="ph ph apiData">7</span></span></dt>
<dd>Barrier invalidation. </dd>
<dt><span class="enum-member-name-def">SANITIZER_CUDA_BARRIER_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1ga177905ebbb1a243f0784662d6de9c0e" id="group__SANITIZER__PATCHING__API_1ga177905ebbb1a243f0784662d6de9c0e" shape="rect">
<!-- --></a><span>enum Sanitizer_DeviceMemoryFlags</span></dt>
<dd class="description">
<div class="section">
<p>Flags describing a memory access. These values are to be or-combined in the value of <strong class="ph b">flags</strong> for a SanitizerCallbackMemoryAccess callback.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_DEVICE_FLAG_NONE = <span class="ph ph apiData">0</span></span></dt>
<dd>Empty flag. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_DEVICE_FLAG_READ = <span class="ph ph apiData">0x1</span></span></dt>
<dd>Specifies that the access is a read. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_DEVICE_FLAG_WRITE = <span class="ph ph apiData">0x2</span></span></dt>
<dd>Specifies that the access is a write. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_DEVICE_FLAG_ATOMSYS = <span class="ph ph apiData">0x4</span></span></dt>
<dd>Specifies that the access is a system-scoped atomic. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_DEVICE_FLAG_PREFETCH = <span class="ph ph apiData">0x8</span></span></dt>
<dd>Specifies that the access is a cache prefetch. </dd>
<dt><span class="enum-member-name-def">SANITIZER_MEMORY_DEVICE_FLAG_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g25af2e64f4c5e2a4e012edb4bb991dcf" id="group__SANITIZER__PATCHING__API_1g25af2e64f4c5e2a4e012edb4bb991dcf" shape="rect">
<!-- --></a><span>enum Sanitizer_InstructionId</span></dt>
<dd class="description">
<div class="section">
<p>Instrumentation. Every entry represent an instruction type or a function call where a callback patch can be inserted. </p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_INVALID = <span class="ph ph apiData">0</span></span></dt>
<dd>Invalid instruction ID. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_BLOCK_ENTER = <span class="ph ph apiData">1</span></span></dt>
<dd>CUDA block enter. This is called prior to any user code. The type of the callback must be SanitizerCallbackBlockEnter. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_BLOCK_EXIT = <span class="ph ph apiData">2</span></span></dt>
<dd>CUDA block exit. This is called after all user code has executed. The type of the callback must be SanitizerCallbackBlockExit.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_GLOBAL_MEMORY_ACCESS = <span class="ph ph apiData">3</span></span></dt>
<dd>Global Memory Access. This can be a store, load or atomic operation. The type of the callback must be SanitizerCallbackMemoryAccess.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_SHARED_MEMORY_ACCESS = <span class="ph ph apiData">4</span></span></dt>
<dd>Shared Memory Access. This can be a store, load or atomic operation. The type of the callback must be SanitizerCallbackMemoryAccess.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_LOCAL_MEMORY_ACCESS = <span class="ph ph apiData">5</span></span></dt>
<dd>Local Memory Access. This can be a store or load operation. The type of the callback must be SanitizerCallbackMemoryAccess.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_BARRIER = <span class="ph ph apiData">6</span></span></dt>
<dd>Barrier. The type of the callback must be SanitizerCallbackBarrier. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_SYNCWARP = <span class="ph ph apiData">7</span></span></dt>
<dd>Syncwarp. The type of the callback must be SanitizerCallbackSyncwarp. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_SHFL = <span class="ph ph apiData">8</span></span></dt>
<dd>Shfl. The type of the callback must be SanitizerCallbackShfl. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_CALL = <span class="ph ph apiData">9</span></span></dt>
<dd>Function call. The type of the callback must be SanitizerCallbackCall. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_RET = <span class="ph ph apiData">10</span></span></dt>
<dd>Function return. The type of the callback must be SanitizerCallbackRet. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_DEVICE_SIDE_MALLOC = <span class="ph ph apiData">11</span></span></dt>
<dd>Device-side malloc. The type of the callback must be SanitizerCallbackDeviceSideMalloc. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_DEVICE_SIDE_FREE = <span class="ph ph apiData">12</span></span></dt>
<dd>Device-side free. The type of the callback must be SanitizerCallbackDeviceSideFree. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_CUDA_BARRIER = <span class="ph ph apiData">13</span></span></dt>
<dd>CUDA Barrier operation. The type of the callback must be SanitizerCallbackCudaBarrier. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_MEMCPY_ASYNC = <span class="ph ph apiData">14</span></span></dt>
<dd>Global to shared memory asynchronous copy. The type of the callback must be SanitizerCallbackMemcpyAsync. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_PIPELINE_COMMIT = <span class="ph ph apiData">15</span></span></dt>
<dd>Pipeline commit. The type of the callback must be SanitizerCallbackPipelineCommit. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_PIPELINE_WAIT = <span class="ph ph apiData">16</span></span></dt>
<dd>Pipeline wait. The type of the callback must be SanitizerCallbackPipelineWait. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_REMOTE_SHARED_MEMORY_ACCESS = <span class="ph ph apiData">17</span></span></dt>
<dd>Remote Shared Memory Access. This can be a store or load operation. The type of the callback must be SanitizerCallbackMemoryAccess.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_DEVICE_ALIGNED_MALLOC = <span class="ph ph apiData">18</span></span></dt>
<dd>Device-side aligned malloc. The type of the callback must be SanitizerCallbackDeviceSideMalloc. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_MATRIX_MEMORY_ACCESS = <span class="ph ph apiData">19</span></span></dt>
<dd>Matrix shared memory access. The type of the callback must be SanitizerCallbackMatrixMemoryAccess. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_CACHE_CONTROL = <span class="ph ph apiData">20</span></span></dt>
<dd>Cache control instruction. The type of the callback must be SanitizerCallbackCacheControl. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_CLUSTER_BARRIER_ARRIVE = <span class="ph ph apiData">21</span></span></dt>
<dd>Cluster barrier arrive instruction. The type of the callback must be SanitizerCallbackClusterBarrierArrive. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_CLUSTER_BARRIER_WAIT = <span class="ph ph apiData">22</span></span></dt>
<dd>Cluster barrier wait instruction. The type of the callback must be SanitizerCallbackClusterBarrierWait. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_WARPGROUP_MMA_ASYNC = <span class="ph ph apiData">23</span></span></dt>
<dd>Warpgroup aligned async MMA instruction. The type of the callback must be SanitizerCallbackWarpgroupMMAAsync. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_WARPGROUP_WAIT_GROUP = <span class="ph ph apiData">24</span></span></dt>
<dd>Warpgroup wait MMA group instruction. The type of the callback must be SanitizerCallbackWarpgroupWaitGroup. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_WARPGROUP_FENCE = <span class="ph ph apiData">25</span></span></dt>
<dd>Warpgroup fence instruction. The type of the callback must be SanitizerCallbackWarpgroupFence. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_ASYNC_STORE = <span class="ph ph apiData">26</span></span></dt>
<dd>Asynchronous store instruction. The type of the callback must be SanitizerCallbackAsyncStore. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_ASYNC_REDUCTION = <span class="ph ph apiData">27</span></span></dt>
<dd>Asynchronous reduction instruction. The type of the callback must be SanitizerCallbackAsyncReduction. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_SET_SHARED_MEMORY_SIZE = <span class="ph ph apiData">28</span></span></dt>
<dd>Set the shared memory size allocated to a block instruction. The type of the callback must SanitizerCallbackSetSmemSize </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_BARRIER_RELEASE = <span class="ph ph apiData">29</span></span></dt>
<dd>Barrier after it is released. The type of the callback must be SanitizerCallbackBarrier. </dd>
<dt><span class="enum-member-name-def">SANITIZER_INSTRUCTION_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gcec4a303dd18b91d32ba1bcabf7296e9" id="group__SANITIZER__PATCHING__API_1gcec4a303dd18b91d32ba1bcabf7296e9" shape="rect">
<!-- --></a><span>enum Sanitizer_WarpgroupMMAAsyncFlags</span></dt>
<dd class="description">
<div class="section">
<p>Flags describing a warpgroup aligned MMA async. These values are to be or-combined in the value of <strong class="ph b">flags</strong> for a SanitizerCallbackWarpgroupMMAAsync callback.
</p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_WARPGROUP_MMA_ASYNC_FLAG_NONE = <span class="ph ph apiData">0</span></span></dt>
<dd>Empty flag. </dd>
<dt><span class="enum-member-name-def">SANITIZER_WARPGROUP_MMA_ASYNC_FLAG_COMMIT_GROUP = <span class="ph ph apiData">0x1</span></span></dt>
<dd>Specifies that the MMA async delimits a MMA async group of which it is the last instruction. Please refer to the PTX documentation
for wgmma_async.commit_group for more details. This property is valid even if the warpMask is zero.
</dd>
<dt><span class="enum-member-name-def">SANITIZER_WARPGROUP_MMA_ASYNC_FLAG_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
</dl>
</div>
<div class="description">
<h4 class="sectiontitle">Functions</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g9d63f4e3663fc4ce4558668afc151a39" id="group__SANITIZER__PATCHING__API_1g9d63f4e3663fc4ce4558668afc151a39" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerAddPatches ( const void*<span> </span><span class="keyword keyword apiItemName">image</span>, CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span> ) </span></dt>
<dd class="description">
<div class="section">Load a module containing patches that can be used by the patching API. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">image</span></tt></dt>
<dd>Pointer to module data to load. This API supports the same module formats as the cuModuleLoadData and cuModuleLoadFatBinary
functions from the CUDA driver API.
</dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">ctx</span></tt></dt>
<dd>CUDA context in which to load the patches. If ctx is NULL, the current context will be used.</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">image</tt> does not point to a valid CUDA module.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>
<div class="note note"><span class="notetitle">Note:</span><ul class="ul">
<li class="li">
<p class="p"><strong class="ph b">Thread-safety</strong>: an API user must serialize access to sanitizerAddPatchesFromFile, sanitizerAddPatches, sanitizerPatchInstructions, and sanitizerPatchModule.
For example if sanitizerAddPatches(image) and sanitizerPatchInstruction(*, *, cbName) are called concurrently and cbName is
intended to be found in the loaded image, the results are undefined.
</p>
</li>
<li class="li">
<p class="p">The patches loaded are only valid for the specified CUDA context.</p>
</li>
</ul>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g04ea679ab0708224d366c48e651e40ef" id="group__SANITIZER__PATCHING__API_1g04ea679ab0708224d366c48e651e40ef" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerAddPatchesFromFile ( const char*<span> </span><span class="keyword keyword apiItemName">filename</span>, CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span> ) </span></dt>
<dd class="description">
<div class="section">Load a module containing patches that can be used by the patching API. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">filename</span></tt></dt>
<dd>Path to the module file. This API supports the same module formats as the cuModuleLoad function from the CUDA driver API.
</dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">ctx</span></tt></dt>
<dd>CUDA context in which to load the patches. If ctx is NULL, the current context will be used.</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">filename</tt> is not a path to a valid CUDA module.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>
<div class="note note"><span class="notetitle">Note:</span><ul class="ul">
<li class="li">
<p class="p"><strong class="ph b">Thread-safety</strong>: an API user must serialize access to sanitizerAddPatchesFromFile, sanitizerAddPatches, sanitizerPatchInstructions, and sanitizerPatchModule.
For example if sanitizerAddPatchesFromFile(filename) and sanitizerPatchInstruction(*, *, cbName) are called concurrently and
cbName is intended to be found in the loaded module, the results are undefined.
</p>
</li>
<li class="li">
<p class="p">The patches loaded are only valid for the specified CUDA context.</p>
</li>
</ul>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g8a243dfc09dc2f676114409039a3e80d" id="group__SANITIZER__PATCHING__API_1g8a243dfc09dc2f676114409039a3e80d" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerGetCallbackPcAndSize ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, const char*<span> </span><span class="keyword keyword apiItemName">deviceCallbackName</span>, uint64_t*<span> </span><span class="keyword keyword apiItemName">pc</span>, uint64_t*<span> </span><span class="keyword keyword apiItemName">size</span> ) </span></dt>
<dd class="description">
<div class="section">Get PC and size of a device callback. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">ctx</span></tt></dt>
<dd>CUDA context in which the patches were loaded. If ctx is NULL, the current context will be used. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">deviceCallbackName</span></tt></dt>
<dd>device function callback name </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">pc</span></tt></dt>
<dd>Callback PC returned </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">size</span></tt></dt>
<dd>Callback size returned</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">deviceCallbackName</tt> function cannot be located, if pc is NULL or if size is NULL.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gc22100c2f92a845e6526fb837027222f" id="group__SANITIZER__PATCHING__API_1gc22100c2f92a845e6526fb837027222f" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerGetFunctionLoadedStatus ( CUfunction<span> </span><span class="keyword keyword apiItemName">func</span>, <a href="modules.html#group__SANITIZER__PATCHING__API_1g7378dfd4f3c8d5f315e733e0243ae46d" title="" shape="rect">Sanitizer_FunctionLoadedStatus</a>*<span> </span><span class="keyword keyword apiItemName">loadingStatus</span> ) </span></dt>
<dd class="description">
<div class="section">Get the loading status of a function. Requires a driver version >=515. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">func</span></tt></dt>
<dd>CUDA function for which the loading status is queried. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">loadingStatus</span></tt></dt>
<dd>Loading status returned</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">func</tt> is NULL or if loadingStatus is NULL.
</p>
</li>
<li>SANITIZER_ERROR_NOT_SUPPORTED
<p class="p">if the loading status cannot be queried with this driver version. </p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g505e9ee66db67d02d15c47b874859545" id="group__SANITIZER__PATCHING__API_1g505e9ee66db67d02d15c47b874859545" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerGetFunctionPcAndSize ( CUmodule<span> </span><span class="keyword keyword apiItemName">module</span>, const char*<span> </span><span class="keyword keyword apiItemName">functionName</span>, uint64_t*<span> </span><span class="keyword keyword apiItemName">pc</span>, uint64_t*<span> </span><span class="keyword keyword apiItemName">size</span> ) </span></dt>
<dd class="description">
<div class="section">Get PC and size of a CUDA function. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">module</span></tt></dt>
<dd>CUDA module containing the function </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">functionName</span></tt></dt>
<dd></dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">pc</span></tt></dt>
<dd>Function start program counter (PC) returned </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">size</span></tt></dt>
<dd>Function size in bytes returned</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">functionName</tt> function cannot be located, if pc is NULL or if size is NULL.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g4047e8742dc65935c2ab45d19a53b850" id="group__SANITIZER__PATCHING__API_1g4047e8742dc65935c2ab45d19a53b850" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerPatchInstructions ( const <a href="modules.html#group__SANITIZER__PATCHING__API_1g25af2e64f4c5e2a4e012edb4bb991dcf" title="Instrumentation. " shape="rect">Sanitizer_InstructionId</a><span> </span><span class="keyword keyword apiItemName">instructionId</span>, CUmodule<span> </span><span class="keyword keyword apiItemName">module</span>, const char*<span> </span><span class="keyword keyword apiItemName">deviceCallbackName</span> ) </span></dt>
<dd class="description">
<div class="section">Set instrumentation points and patches to be applied in a module. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">instructionId</span></tt></dt>
<dd>Instrumentation point for which to insert patches </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">module</span></tt></dt>
<dd>CUDA module to instrument </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">deviceCallbackName</span></tt></dt>
<dd>Name of the device function callback that the inserted patch will call at the instrumented points. This function is expected
to be found in code previously loaded by sanitizerAddPatchesFromFile or sanitizerAddPatches.
</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_NOT_INITIALIZED
<p class="p">if unable to initialize the sanitizer </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">module</tt> is not a CUDA module or if <tt class="ph tt code">deviceCallbackName</tt> function cannot be located.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Mark that all instrumentation points matching instructionId are to be patched in order to call the device function identified
by deviceCallbackName. It is up to the API client to ensure that this device callback exists and match the correct callback
format for this instrumentation point.
</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: an API user must serialize access to sanitizerAddPatchesFromFile, sanitizerAddPatches, sanitizerPatchInstructions, and sanitizerPatchModule.
For example if sanitizerAddPatches(fileName) and sanitizerPatchInstruction(*, *, cbName) are called concurrently and cbName
is intended to be found in the loaded module, the results are undefined.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" id="group__SANITIZER__PATCHING__API_1g2e7500a0e365b2ddf6c273c87a34b22d" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerPatchModule ( CUmodule<span> </span><span class="keyword keyword apiItemName">module</span> ) </span></dt>
<dd class="description">
<div class="section">Perform the actual instrumentation of a module. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">module</span></tt></dt>
<dd>CUDA module to instrument</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">module</tt> is not a CUDA module
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Perform the instrumentation of a CUDA module based on previous calls to sanitizerPatchInstructions. This function also specifies
the device memory buffer to be passed in as userdata to all callback functions.
</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: an API user must serialize access to sanitizerAddPatchesFromFile, sanitizerAddPatches, sanitizerPatchInstructions, and sanitizerPatchModule.
For example if sanitizerPatchModule(mod, *) and sanitizerPatchInstruction(*, mod, *) are called concurrently, the results
are undefined.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g55712541951d15f51e8c294382f91be0" id="group__SANITIZER__PATCHING__API_1g55712541951d15f51e8c294382f91be0" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerSetCallbackData ( CUfunction<span> </span><span class="keyword keyword apiItemName">kernel</span>, const void*<span> </span><span class="keyword keyword apiItemName">userdata</span> ) </span></dt>
<dd class="description">
<div class="section">Specifies the user data pointer for callbacks. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">kernel</span></tt></dt>
<dd>CUDA function to link to user data. Callbacks in subsequent launches on this kernel will use <tt class="ph tt code">userdata</tt> as callback data.
</dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">userdata</span></tt></dt>
<dd>Device memory buffer. This data will be passed to callback functions via the <tt class="ph tt code">userdata</tt> parameter.
</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Mark all subsequent launches of <tt class="ph tt code">kernel</tt> to use <tt class="ph tt code">userdata</tt> pointer as the device memory buffer to pass in to callback functions.
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1gb935b39b1985cd49ac7bdfa181b88def" id="group__SANITIZER__PATCHING__API_1gb935b39b1985cd49ac7bdfa181b88def" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerSetDeviceGraphData ( CUgraphExec<span> </span><span class="keyword keyword apiItemName">graphExec</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span>, const void*<span> </span><span class="keyword keyword apiItemName">userdata</span> ) </span></dt>
<dd class="description">
<div class="section">Specifies the user data pointer accessible from callbacks in the device-launched graphs launched by the specified host-launched
graphExec.
</div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">graphExec</span></tt></dt>
<dd>CUDA graphExec that will launch CUDA graphs from the device. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">stream</span></tt></dt>
<dd>CUDA stream associated with the stream launch. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">userdata</span></tt></dt>
<dd>Device memory buffer.</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Mark all subsequent launch of <tt class="ph tt code">graphExec</tt> to make available <tt class="ph tt code">userdata</tt> in device callbacks from device-launched graphs. <tt class="ph tt code">userdata</tt> will not be set in the callback userdata parameter but must be accessed through another mean instead. Please refer to the
Sanitizer API reference manual. This function is only available if the driver version is 535 or newer.
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1ge0ea84fc8d9b9a2a514826be53ef2b14" id="group__SANITIZER__PATCHING__API_1ge0ea84fc8d9b9a2a514826be53ef2b14" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerSetLaunchCallbackData ( Sanitizer_LaunchHandle<span> </span><span class="keyword keyword apiItemName">launch</span>, CUfunction<span> </span><span class="keyword keyword apiItemName">kernel</span>, Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span>, const void*<span> </span><span class="keyword keyword apiItemName">userdata</span> ) </span></dt>
<dd class="description">
<div class="section">Specifies the user data pointer for callbacks. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">launch</span></tt></dt>
<dd>Kernel launch to link to user data. Callbacks in this kernel launch will use <tt class="ph tt code">userdata</tt> as callback data.
</dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">kernel</span></tt></dt>
<dd>CUDA function associated with the kernel launch. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">stream</span></tt></dt>
<dd>CUDA stream associated with the stream launch. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">userdata</span></tt></dt>
<dd>Device memory buffer. This data will be passed to callback functions via the <tt class="ph tt code">userdata</tt> parameter.
</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Mark <tt class="ph tt code">launch</tt> to use <tt class="ph tt code">userdata</tt> pointer as the device memory buffer to pass in to callback functions. This function is only available if the driver version
is 455 or newer.
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__PATCHING__API_1g5ac4eb8e7b484ac3e70c459413791b22" id="group__SANITIZER__PATCHING__API_1g5ac4eb8e7b484ac3e70c459413791b22" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerUnpatchModule ( CUmodule<span> </span><span class="keyword keyword apiItemName">module</span> ) </span></dt>
<dd class="description">
<div class="section">Remove existing instrumentation of a module. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">module</span></tt></dt>
<dd>CUDA module on which to remove instrumentation</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Remove any instrumentation of a CUDA module performed by previous calls to sanitizerPatchModule. </p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: an API user must serialize access to sanitizerPatchModule and sanitizerUnpatchModule on the same module. For example, if
sanitizerPatchModule(mod) and sanitizerUnpatchModule(mod) are called concurrently, the results are undefined.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
</dl>
</div>
</div>
<div class="topic reference apiRef apiPackage cppModule" id="group__SANITIZER__RESULT__API"><a name="group__SANITIZER__RESULT__API" shape="rect">
<!-- --></a><h3 class="topictitle3 cppModule">1.5. Sanitizer Result Codes</h3>
<div class="section">
<p>Error and result codes returned by Sanitizer functions. </p>
</div>
<h4 class="fake_sectiontitle member_header">Enumerations</h4>
<dl class="members">
<dt><span class="member_type">enum </span><span class="member_name"><a href="#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" shape="rect">SanitizerResult</a></span></dt>
<dd class="shortdesc"><span></span><span class="desc">Sanitizer result codes. </span></dd>
</dl>
<h4 class="fake_sectiontitle member_header">Functions</h4>
<dl class="members">
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__RESULT__API_1gcb5ad11b4de885309b8f5e9e999abfc4" shape="rect">sanitizerGetResultString</a> ( <a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a><span> </span><span class="keyword keyword apiItemName">result</span>, const char**<span> </span><span class="keyword keyword apiItemName">str</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc"></span></dd>
</dl>
<div class="description">
<h4 class="sectiontitle">Enumerations</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" id="group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" shape="rect">
<!-- --></a><span>enum SanitizerResult</span></dt>
<dd class="description">
<div class="section">
<p>Error and result codes returned by Sanitizer functions. </p>
</div>
<div class="enum-members">
<h6 class="enumerator_header">
Values
</h6>
<dl class="enumerator">
<dt><span class="enum-member-name-def">SANITIZER_SUCCESS = <span class="ph ph apiData">0</span></span></dt>
<dd>No error. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_INVALID_PARAMETER = <span class="ph ph apiData">1</span></span></dt>
<dd>One or more of the parameters is invalid. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_INVALID_DEVICE = <span class="ph ph apiData">2</span></span></dt>
<dd>The device does not correspond to a valid CUDA device. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_INVALID_CONTEXT = <span class="ph ph apiData">3</span></span></dt>
<dd>The context is NULL or not valid. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_INVALID_DOMAIN_ID = <span class="ph ph apiData">4</span></span></dt>
<dd>The domain ID is invalid. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_INVALID_CALLBACK_ID = <span class="ph ph apiData">5</span></span></dt>
<dd>The callback ID is invalid. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_INVALID_OPERATION = <span class="ph ph apiData">6</span></span></dt>
<dd>The current operation cannot be performed due to dependency on other factors. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_OUT_OF_MEMORY = <span class="ph ph apiData">7</span></span></dt>
<dd>Unable to allocate enough memory to perform the requested operation. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_PARAMETER_SIZE_NOT_SUFFICIENT = <span class="ph ph apiData">8</span></span></dt>
<dd>The output buffer size is not sufficient to return all requested data. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_API_NOT_IMPLEMENTED = <span class="ph ph apiData">9</span></span></dt>
<dd>API is not implemented. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_MAX_LIMIT_REACHED = <span class="ph ph apiData">10</span></span></dt>
<dd>The maximum limit is reached. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_NOT_READY = <span class="ph ph apiData">11</span></span></dt>
<dd>The object is not ready to perform the requested operation. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_NOT_COMPATIBLE = <span class="ph ph apiData">12</span></span></dt>
<dd>The current operation is not compatible with the current state of the object. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_NOT_INITIALIZED = <span class="ph ph apiData">13</span></span></dt>
<dd>Sanitizer is unable to initialize its connection to the CUDA driver. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_NOT_SUPPORTED = <span class="ph ph apiData">14</span></span></dt>
<dd>The attempted operation is not supported on the current system or device </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_ADDRESS_NOT_IN_DEVICE_MEMORY = <span class="ph ph apiData">15</span></span></dt>
<dd>The attempted device operation has a parameter not in device memory </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_UNKNOWN = <span class="ph ph apiData">999</span></span></dt>
<dd>An unknown internal error has occurred. </dd>
<dt><span class="enum-member-name-def">SANITIZER_ERROR_FORCE_INT = <span class="ph ph apiData">0x7fffffff</span></span></dt>
<dd></dd>
</dl>
</div>
</dd>
</dl>
</div>
<div class="description">
<h4 class="sectiontitle">Functions</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__RESULT__API_1gcb5ad11b4de885309b8f5e9e999abfc4" id="group__SANITIZER__RESULT__API_1gcb5ad11b4de885309b8f5e9e999abfc4" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerGetResultString ( <a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a><span> </span><span class="keyword keyword apiItemName">result</span>, const char**<span> </span><span class="keyword keyword apiItemName">str</span> ) </span></dt>
<dd class="description">
<div class="section"></div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">result</span></tt></dt>
<dd>The result to get the string for </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">str</span></tt></dt>
<dd>Returns the string</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">str</tt> is NULL or <tt class="ph tt code">result</tt> is not a valid SanitizerResult.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Get the descriptive string for a SanitizerResult.</p>
<p class="p">Return the descriptive string for a SanitizerResult in <tt class="ph tt code">*str</tt>.
</p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread-safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
</dl>
</div>
</div>
<div class="topic reference apiRef apiPackage cppModule" id="group__SANITIZER__STREAM__API"><a name="group__SANITIZER__STREAM__API" shape="rect">
<!-- --></a><h3 class="topictitle3 cppModule">1.6. Sanitizer Stream API</h3>
<div class="section">
<p>Functions, types, and enums that implement the Sanitizer Stream API. </p>
</div>
<h4 class="fake_sectiontitle member_header">Functions</h4>
<dl class="members">
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__STREAM__API_1g3b54bc99472229c5f4928bb37382295a" shape="rect">sanitizerGetStream</a> ( Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">hStream</span>, CUstream*<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Retrieve a CUstream handle from a Sanitizer_StreamHandle handle. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__STREAM__API_1g71ecc9d6e3d2ab5bccd4b6448bbe558a" shape="rect">sanitizerGetStreamHandle</a> ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, CUstream<span> </span><span class="keyword keyword apiItemName">stream</span>, Sanitizer_StreamHandle*<span> </span><span class="keyword keyword apiItemName">hStream</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Retrieve a Sanitizer_StreamHandle handle from a CUstream handle. </span></dd>
<dt><span class="member_type"><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> </span><span class="member_name"><a href="#group__SANITIZER__STREAM__API_1gc6919d046ea3351326fce607daa19a6c" shape="rect">sanitizerStreamSynchronize</a> ( Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="shortdesc"><span></span><span class="desc">Synchronize a given stream. </span></dd>
</dl>
<div class="description">
<h4 class="sectiontitle">Functions</h4>
<dl class="description">
<dt class="description"><a name="group__SANITIZER__STREAM__API_1g3b54bc99472229c5f4928bb37382295a" id="group__SANITIZER__STREAM__API_1g3b54bc99472229c5f4928bb37382295a" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerGetStream ( Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">hStream</span>, CUstream*<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="description">
<div class="section">Retrieve a CUstream handle from a Sanitizer_StreamHandle handle. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">hStream</span></tt></dt>
<dd>Sanitizer Stream handle. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">stream</span></tt></dt>
<dd>Output CUstream handle.</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">hStream</tt> is not a valid Sanitizer stream handle or if <tt class="ph tt code">stream</tt> is NULL.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__STREAM__API_1g71ecc9d6e3d2ab5bccd4b6448bbe558a" id="group__SANITIZER__STREAM__API_1g71ecc9d6e3d2ab5bccd4b6448bbe558a" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerGetStreamHandle ( CUcontext<span> </span><span class="keyword keyword apiItemName">ctx</span>, CUstream<span> </span><span class="keyword keyword apiItemName">stream</span>, Sanitizer_StreamHandle*<span> </span><span class="keyword keyword apiItemName">hStream</span> ) </span></dt>
<dd class="description">
<div class="section">Retrieve a Sanitizer_StreamHandle handle from a CUstream handle. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">ctx</span></tt></dt>
<dd>Context owning the stream. If NULL, the current context will be used. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">stream</span></tt></dt>
<dd>CUstream handle. If NULL, the NULL stream will be used. </dd>
<dt><tt class="code"><span class="keyword keyword apiItemName">hStream</span></tt></dt>
<dd>Output Sanitizer Stream handle.</dd>
</dl>
</div>
<div class="section">
<h6 class="return_header">Returns</h6>
<p class="return">
<ul>
<li>SANITIZER_SUCCESS
<p class="p">on success </p>
</li>
<li>SANITIZER_ERROR_INVALID_PARAMETER
<p class="p">if <tt class="ph tt code">stream</tt> is not a valid CUstream handle or if <tt class="ph tt code">hStream</tt> is NULL.
</p>
</li>
</ul>
</p>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
<dt class="description"><a name="group__SANITIZER__STREAM__API_1gc6919d046ea3351326fce607daa19a6c" id="group__SANITIZER__STREAM__API_1gc6919d046ea3351326fce607daa19a6c" shape="rect">
<!-- --></a><span><a href="modules.html#group__SANITIZER__RESULT__API_1g8edf13e06b1b4001d7577b07ddd575d8" title="Sanitizer result codes. " shape="rect">SanitizerResult</a> sanitizerStreamSynchronize ( Sanitizer_StreamHandle<span> </span><span class="keyword keyword apiItemName">stream</span> ) </span></dt>
<dd class="description">
<div class="section">Synchronize a given stream. </div>
<div class="section">
<h6 class="parameter_header">
Parameters
</h6>
<dl class="table-display-params">
<dt><tt class="code"><span class="keyword keyword apiItemName">stream</span></tt></dt>
<dd>Stream handle. If NULL, the NULL stream will be used. </dd>
</dl>
</div>
<div class="section">
<h6 class="description_header">Description</h6>
<p>Equivalent of cudaStreamSynchronize that can be called with a sanitizer stream handle </p>
<p class="p">
<div class="note note"><span class="notetitle">Note:</span><p class="p"><strong class="ph b">Thread-safety</strong>: this function is thread safe.
</p>
</div>
</p>
<p class="p"></p>
</div>
</dd>
</dl>
</div>
</div>
</div>
<hr id="contents-end"></hr>
</article>
</div>
</div>
<script language="JavaScript" type="text/javascript" charset="utf-8" src="../common/formatting/common.min.js"></script>
<script language="JavaScript" type="text/javascript" charset="utf-8" src="../common/scripts/google-analytics/google-analytics-write.js"></script>
<script language="JavaScript" type="text/javascript" charset="utf-8" src="../common/scripts/google-analytics/google-analytics-tracker.js"></script>
<script type="text/javascript">_satellite.pageBottom();</script>
<script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript">stLight.options({publisher: "998dc202-a267-4d8e-bce9-14debadb8d92", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script></body>
</html>
|